I’m building a little scheduling web page, where the user can check out a component for a certain time period. The web page will allow them to select a component, a begin time a begin hour an end time and an end hour. The only stipulation is that the same componenet cannot be checked out for the same time period…So.
I have two tables.
Table1
1,Comp1
2,Comp2
Table2
User,beg_date,end_date,beg_hour,end_hour,Component(from Table1)
Anybody come up with a good SQL job that given a begin date, end date, begin hour, end hour and a component, it will check the tables above and make sure that component is not all ready checked out. Here’s what I have so far, I’m having trouble tying in the hour fields….
I have two tables.
Table1
1,Comp1
2,Comp2
Table2
User,beg_date,end_date,beg_hour,end_hour,Component(from Table1)
Anybody come up with a good SQL job that given a begin date, end date, begin hour, end hour and a component, it will check the tables above and make sure that component is not all ready checked out. Here’s what I have so far, I’m having trouble tying in the hour fields….