Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Q: Children Count for a Mother

2 views
Skip to first unread message

Jutta Wrage

unread,
Jun 25, 2017, 10:45:02 AM6/25/17
to perl-...@perl.org
Hi!

I want to get the number of children of a woman.

If I call number_of_children for every family, I get only the correct number, if there isn't one of the childrens added to two of the families.

Example:
Woman gets a child
Then she is divorced an married again before the child is adult.
The child is added to the new family as being Stepchild this makes it counted for both of the families.

I did not find out how to get access to the qualifiers "Step", "biological"...
So it seems not be possible to count the children myself without putting them to an array and sort out duplicates
or iterate through all individuals and increase a counter for a mother on each one.

Am I right so far? Or is there a better way to find out how many children are born by same mother?

Jutta

--
http://www.witch.westfalen.de

signature.asc

Ron Savage

unread,
Jun 25, 2017, 11:30:02 PM6/25/17
to perl-...@perl.org
Hi Jutta

What comes to find is checking their birthdates.
--
Ron Savage - savage.net.au

Paul Johnson

unread,
Jun 26, 2017, 6:30:02 AM6/26/17
to Ron Savage, perl-...@perl.org
That will merge separate INDI records with the same birthdate, which may
well be what you want. If it is not, you could check the xref or rin,
if you have one.

But I think you will actually need to write that code yourself. Perhaps
putting them in a hash keyed on the xref would be the simplest solution?
--
Paul Johnson - pa...@pjcj.net
http://www.pjcj.net
0 new messages