Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Showing children in parent records and vice versa


This topic is 6221 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted (edited)

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.

This topic is 6221 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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