W
Wendy Brown
I'm sure this is an easy answer, but just can't work it out; please help.
I am designing a cattery database for my GCSE coursework. I have the
following tables:
*Cats*
CatID
CatName
Breed
*Pens*
PenID
PenName
Type
*Joining Table*
PenID
CatID
DateIn
DateOut
I want to link these 2 together, so that Tiddles is staying in pen 2 for the
1st week of January, and Maxie is staying in pen 1 for the last week in
Augest, for example. But then I want to run a query to see which pens are
free on a particular date. I can't seem to work out what relationships I
need to create. Do I create a comp[ound primary key with both the in and
out dates? Or do I need a new field of a tick box that the pen is free on a
certain date? If so, how do I do it? I know how to create a relationship
with one field, but the uniqueness is the in and out date.
Please help - I can give you more information if required.
Wendy
I am designing a cattery database for my GCSE coursework. I have the
following tables:
*Cats*
CatID
CatName
Breed
*Pens*
PenID
PenName
Type
*Joining Table*
PenID
CatID
DateIn
DateOut
I want to link these 2 together, so that Tiddles is staying in pen 2 for the
1st week of January, and Maxie is staying in pen 1 for the last week in
Augest, for example. But then I want to run a query to see which pens are
free on a particular date. I can't seem to work out what relationships I
need to create. Do I create a comp[ound primary key with both the in and
out dates? Or do I need a new field of a tick box that the pen is free on a
certain date? If so, how do I do it? I know how to create a relationship
with one field, but the uniqueness is the in and out date.
Please help - I can give you more information if required.
Wendy