N
nysimonsez
Guest
Right now I have 2 tables in a database, 1 to collect personal info, the other for cash received from each person:
Table 1: NameID, address, etc...
Table 2: Date, NameID, amount
I want to add 2 functions to the database:
1. If I run a cash received report for husband (nameid=1), it will
automatically include the wife's cash received if he has one (nameid=2,
for example) and print both on the same report. How can I build that
"relationship" between 2 nameid's to reference they are husband and
wife.
2. The personal info table will have relatives, for ex: nameid1=father,
nameid2=wife, nameid3=child, nameid4=nameid1's father, etc. How can I keep track of these "relationship" in the database? I've read other threads where I should create a parent/child relationship table, is that enough or do I have to create a father/grandfather relationship table also?
Thanks for any suggestions you may have.
Table 1: NameID, address, etc...
Table 2: Date, NameID, amount
I want to add 2 functions to the database:
1. If I run a cash received report for husband (nameid=1), it will
automatically include the wife's cash received if he has one (nameid=2,
for example) and print both on the same report. How can I build that
"relationship" between 2 nameid's to reference they are husband and
wife.
2. The personal info table will have relatives, for ex: nameid1=father,
nameid2=wife, nameid3=child, nameid4=nameid1's father, etc. How can I keep track of these "relationship" in the database? I've read other threads where I should create a parent/child relationship table, is that enough or do I have to create a father/grandfather relationship table also?
Thanks for any suggestions you may have.