Have a table called tblshift with empid and tblshift as compound_PK
and have attributes at starttime and finish time.
so i can set an employee to work any date and any start and time within that date. i want to implement another table which i've called tblavailability and has the same attributes as tblshift this will record days the emp can't work! so here they will book days off work (for special occations etc
)
my question is???
How can i write a query to ensure that if say: david gray's entery in the tblavailability was:
David Gray 05/05/2004 (starttime) (finishtime) -- any times!
the user wouldn't be able to then put david into the tblshift on the 05/05/2004??
can't think of way round it -- gagging for some guidance. have DB to post if needed but it's kinda large so would have to extract all seperate bits etc!!
cheers..

and have attributes at starttime and finish time.
so i can set an employee to work any date and any start and time within that date. i want to implement another table which i've called tblavailability and has the same attributes as tblshift this will record days the emp can't work! so here they will book days off work (for special occations etc
my question is???
How can i write a query to ensure that if say: david gray's entery in the tblavailability was:
David Gray 05/05/2004 (starttime) (finishtime) -- any times!
the user wouldn't be able to then put david into the tblshift on the 05/05/2004??
can't think of way round it -- gagging for some guidance. have DB to post if needed but it's kinda large so would have to extract all seperate bits etc!!
cheers..