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.

Table occurrences, one-to-one relationships

Featured Replies

Hi,

I have a table of Groups and a table of People. A Group has a number of positions: Treasurer, Chairperson, District Representative, etc. (about 8 in all) - each one of which is a person in the People table.

When I display the detailed info about a group, I want to be able to list each of those positions, and the name of the person currently filling it.

It seems most obvious to store a Person_ID for each of those 8 positions in the Group record. However, unless I'm confused, this means creating 8 different relationships, and 8 different People TO's. That seems like a lot of clutter and effort.

Is there a simpler way to do this, that I'm just not seeing?

Thanks,

Chap

This is a standard join table issue. The positions do not belong in the group table. You need a Group_positions table, with, minimally, GroupID; PersonID; RecordID; Position.

  • Author

Thanks -

I get the GroupID and the PersonID, and the Position, but why RecordID? Or are you referring to a key for the join record?

Yes, key for the join record.

  • Author

Okay - I think I know what I wasn't initially seeing:

I'm converting an old MS-Access database, which had a "layout" showing various positions (and the people holding them) for a group. These were entirely static:

Contact1

Contact2

Contact3

Treasurer

Secretary

Chairperson

etc.

and I was attempting to mimic this setup, with separate fields in the Group record for Contact1_PersonID, Contact2_PersonID, Contact3_PersonID, etc. Hence the proliferation of relationships.

If I understand your approach, it's to present all the positions for a group in a list (a portal would be simplest), rather than as a static set of independent fields.

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.