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.

Many to Many self-join

Featured Replies

I have wrestled with this, but am failing.

I have Students and Supervisors. Supervisors can have more than 1 student, and students will definitely have more than one supervisor. I would like to look at a student record and see their supervisors, and look at a Supervisors record to see all their students. I am assuming this should be in a portal, but I am having trouble with the self joining aspect.

I want to keep them in the one contacts list, as there are other tables (eg Events) that both students and supervisors and other contacts will relate to. That stuff all works well. I think I need a many to many self-join, but I seem to be stuffing it up.

I have created a simple sample database with what I have done so far attached. Please feel free to advise me or edit.  Thank you.

Self join advisors students.fmp12

something like this will do:

image.png.81370c8e60eaff98406b0b91bd34ceab.png

  • Author

Hi Wim, Great. Thank you for that. That worked.

Cheers

  • 3 weeks later...

Can I jump in here and ask which keys are the primary keys for the advisors and students in Wim's solution please?

Since there is no Advisor table nor a Student table, there are no primary keys for those entities.

The design choice here is to go with a people table called Everyone and the primary key for that table is the field "PrimaryKey"

The advisor or student role is just an attribute of the Everyone entity, expressed by setting the Advisor ID/Student ID in Everyone and creating a record in the JOIN table to link up someone as advisor with someone as a student.

This is just one of a few ways you can design this.

Great.  Thanks for the explanation 😀

Just wondering if you can explain how the portals are set up please?  Can't get them to work.  I have attached a pic of my setup.  Thanks.

Screenshot.png

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.