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.

Self join Relationship or New Table?

Featured Replies

Hello,

In my solution, I have a "Personell" table which includes about 400 records.

Personell is distinguished, according to its specialty to :

  • mechanic
  • electrician
  • driver

Some fields in this table hold attributes that are common to all records(Personell) like:

  • DOB
  • Address
  • Phone number
  • Email et.c.

On the other hand, each specialty has its own unique attributes. For example "drivers" have:

  • licence ID
  • licence type
  • Total hours behind wheel et.c.

 

Should I put the fields that hold specialty-unique attributes, to my main table ?

OR

Put them on  a related table that holds only the _pk of each Person , and make a script to populate

the new table each time I have a new entry on the old?

 

Thanks!

Both solutions are valid and which one you choose depends on details that we don't have - and to a large extent on your personal preference.

Implementing the second solution (a.k.a the supertype/subtype model) in Filemaker is not trivial, and if the number of the specialty-specific fields is not very large, you may well prefer to keep them all in the same table.

There's also a third alternative in the form of an entity-value-attribute table: https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model

 

  • Author

What are the things to have in mind if implementing the supertype/subtype model?

I  hope this is not a too general question

 

1 hour ago, Dimitrios Fkiaras said:

I  hope this is not a too general question

I am afraid so. But do a search for supertype - this has been discussed before.

Try this Google Search

site:fmforums.com supertype

HTH

Lee

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.