G
Guest
I'm trying to decide what the best relationship I should have. here's a
simplified analogy of what I have.
4 Possible combinations:
Cage is empty
Cage with ONE animal
Cage with ONE bowl
Cage with one animal AND one bowl
There are several fields in each table.
Tables: Bowl, Cage, Dog, Cat, Bird etc..
In the ANIMAL and 'Bowl' table, one of the fields is "Cage Number". "Cage
Number" is the primary key in the 'Cage' table.
Not all animals belong in a cage (some are sold)
Not all bowls belong in a cage (some are in stock)
What kind of relationship should I have between the tables (on the "Cage
Number" field) to ensure that only the four possible combinations listed
above can exist while keeping in mind that a form is need for data entry.
Any help would be muchly appreciated
TIA
simplified analogy of what I have.
4 Possible combinations:
Cage is empty
Cage with ONE animal
Cage with ONE bowl
Cage with one animal AND one bowl
There are several fields in each table.
Tables: Bowl, Cage, Dog, Cat, Bird etc..
In the ANIMAL and 'Bowl' table, one of the fields is "Cage Number". "Cage
Number" is the primary key in the 'Cage' table.
Not all animals belong in a cage (some are sold)
Not all bowls belong in a cage (some are in stock)
What kind of relationship should I have between the tables (on the "Cage
Number" field) to ensure that only the four possible combinations listed
above can exist while keeping in mind that a form is need for data entry.
Any help would be muchly appreciated
TIA