Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Holy Cow! How do I handle a many to many to many to many relationship?


This topic is 4904 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

My three remaining brain cells just went AWOL trying to resolve this one:

I am building a database for a Boy Scout Troop (I'm the new Treasurer) and have much of it up and running, but can't figure out how to properly relate the following:

Many (dozens) of scouts attend many outings each throughout the year.

Each outing has many (4-5) scout patrols attending.

Each scout patrol at each outing has many scouts (8-12) in it.

Many scouts (2-3 out of each group of 8-12) in each patrol buy food for their patrol.

All scouts in each patrol pay their fair share of the food costs for their patrol.

I know how to do the calcs to divvy up the costs, but figuring out the relationships is waaaay above my brain's capacity!

I need to name each outing, list the patrols for that particular outing and which scouts are in each outing patrol and drill down one more time to put in how much the food purchasers each spent and then have the resultant costs/credits be applied to each scout's individual income/expense account.

I semi-sorta understand join tables, but can't seem to get this one right.

Any help would be very much appreciated - thanks in advance for any guidance and recommendations.

Sincerely,

Guy

Posted

Each outing has many (4-5) scout patrols attending.

Do they come in already divided into patrols? Or do they arrive as individuals, and divide into patrols for the current outing only?

Posted

I would start with:

Scouts -< Attendance >- Patrols >- Outings

Create a new record in Attendance for each participating scout, and assign them to a patrol. Now, if you want to keep it very simple, you could have two fields in the Attendance table: one for the expense and one for the settlement (this would be negative in case of reimbursement).

Posted

You rock!!!

I somehow came up with three join tables and a bunch of headaches.

Your solution is MUCH cleaner and easier - thanks very much for your insight.

Posted

Have you looked at TroopLedger? As a certified FM dev and mother of a scout, I was tempted to reinvent the wheel. However, I felt that it would be better for the Troop to leave them with a commercial software solution that is supported and well-tested. Worth a look, and I wouldn't be surprised if they're already using TroopMaster.

Posted

We already have TroopMaster and it is used extensively by the ScoutMaster, but I do not have access to a Windows machine - I've got a Mac and the program doesn't run on a Mac. Thanks for the heads-up, though.

This topic is 4904 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.