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.

Calling two separate related records

Featured Replies

So I have a Person table. There are two types of people, the one who is filling out the report and the person who is the subject of the report. If at all possible, I'd like to be able to pull both of their records from another table using their primary keys. I can't think of how to do this though and may have to resign myself to separating the persons table.

See if this helps:

If not, explain how your situation is different.

You need to spend a few minutes thinking about the relationship between the REPORTS entity, the PERSONS entity and the PERSON_TYPES (probably best named PERSON_ROLES imho) entity.

Can a report have only two persons (one with type/role subject and one with type/role author)?

This arrangement will result in a different design than if there can be zero or many persons with different types/roles related to one or more reports.

The latter could probably be tackled with a join table for REPORT_PERSONS but the devil is in the details.

14 minutes ago, comment said:

See if this helps:

If not, explain how your situation is different.

Nice!

Edited by Kris M

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.