Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Interconnecting many-many relationships and sum ?

Featured Replies

I have a database that has the following tables:

contacts

companies

contactcompanyjoin (contacts can actually be associated with several companies)

conferences

registrations (a join between contacts and conferences)

Contacts and Companies are joined through related ID fields in the contactcompanyjoin table.

Contacts and Conferences are joined through related ID fields in the registrations table.

Companies are related to a second occurence of the registrations table by both Company ID and Conference ID (so that I can see who is coming to each conference from each company in a portal on the Companies layout)

Each Registration Record has a cost field, which is a calculation based on the registration type field. ie Case (Registration Type = "Full"; $500; etc...)

Then I have a Total Cost Field in the Registration Table which is a calculation field: Sum (cost field). So in my layout for the company, I can see a portal with all the attendees based on the Conference ID I enter. And the total cost for those attendees shown.

It works fine for all of the companies that do not share contacts with other companies. But when a contact is associated with multiple companies, it adds up all of the costs for all of the registrations associated with any of the companies sharing a contact.

Anybody have any ideas on what relationships would need to be adjusted?

Thanks.

You have a many to many to many relationship. You may want to try a star join, i.e., one join table that connects Company, Contact & Conference. See Using FileMaker 7 pp 149-151 & 176-178. Also look at the sample file TaskManagement.fp7 under Business - Projects.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.