In these days, this must come up, but I keep having some thing or the other wrong.
I have tables for household and people; people are marked as children or adults. I want to report hh info (address, phone, etc), and a list of names in the hh.
But, suppose Jane Dough is married to Richard Roe, and they have two children, jessica Roe and Aaron Roe (they are proper yuppies). Under the D’s, I want to see Jane Dough and the list of people, and the same under Richard Roe in the Rs.
On the other hand, Bill and Mary Conventional also have two children, and they should have only one listing under the Cs.
This would be easy in a procedural language…