Skip 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.

Showing children in parent records and vice versa

Featured Replies

I need some further advice on how to set up a database whereby the entry for each animal whether it is a father, mother or offspring would show any relationships eg. the entry for an offspring would show the mother and father and the entry for a grown-up would show all the offsprings. At the same time the reporting would be able to produce the total inventory of animals.

Maybe this could serve as a starting point:

http://fmforums.com/forum/showtopic.php?tid/174925/post/197881/#197881

Try a single table:

Animal

--------

_kp_RecordID - serial

_kf_ParentID

Gender

With a self join:

Animal -- Parent [base table: Animal]

_kf_ParentID = _kp_RecordID

And an additional self join, if you want to show both an animals parents and children from the same context:

Animal -- Children [base table: Animal]

_kp_RecordID = _kf_ParentID

Whether a parent is a mother or father is determined by gender.

This way there's a single table, with one record for each animal.

Edited by Guest
clarified that all TOs share same base table.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.