Hello, I have a query problem which has made me headache for a long time..hope you have some ideas, thanks!
I am writing a ASP2.0 plus MS Access application. For the sake of simplicity, I have a table, WORKTIME, which is like below:
UserGroup StartWorkTime EndWorkTime
A 08:00 AM 17:00 PM
B 17:01 PM 01:00 AM
C 01:01 AM 07:59 AM
The datatype of StartWorkTime and EndWorkTime are Date/Time with short time format (no date needed). The period from StartWorkTime and EndWorkTime is the relevant user group's working hours
Now suppose the current time is 00:30 AM, how should I write a SQL statement to query this table so that I can retrieve the user group B?
Thanks so much!
I am writing a ASP2.0 plus MS Access application. For the sake of simplicity, I have a table, WORKTIME, which is like below:
UserGroup StartWorkTime EndWorkTime
A 08:00 AM 17:00 PM
B 17:01 PM 01:00 AM
C 01:01 AM 07:59 AM
The datatype of StartWorkTime and EndWorkTime are Date/Time with short time format (no date needed). The period from StartWorkTime and EndWorkTime is the relevant user group's working hours
Now suppose the current time is 00:30 AM, how should I write a SQL statement to query this table so that I can retrieve the user group B?
Thanks so much!