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.

Two relationship problems

Featured Replies

Hello there. I'm stuck and I hope somebody can help me out a bit, I've isolated my predicament in a zip file. To protect the innocent, all names are of baseball pitchers from the sixties. Here goes:

Let's say I've got three Departments (offices, warehouse and workshop), each Department must create security Teams (fire, first aid and evacuation), each Team has several specific Functions (they're all in the database, have a looksee). I'd like to keep all Team members in one field, instead of splitting them all into separate fields for each Team, if at all possible. But since some employees belong to more than one team, repeating fields seem like a logical way to handle it.

In the first file (Employees.fp7), the first Brigade and Function lines work fine, it's in the second line onward where things go haywire.

Then, in the other file (Functions.fp7), the same and only one employee shows up in every Team and Function of his respective Department.

Please check out the file, I'm sure it makes more sense than my written description. Can somebody please help?

FM_Forums.zip

I don't understand your files at all. Based on your description, I think you need a structure like the one depicted in the attached ERD.

since some employees belong to more than one team, repeating fields seem like a logical way to handle it.

No, the logical (and correct) way is to use a join table.

Teams.gif

Here's a more elaborate schema that would allow Assignments to use a value lists of available functions, according to the selected team's type.

Teams.png

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.