C
Chris Strug
Hi,
I'm having a problem thinking this one through and was wondering if someone
could provide me with some inspiration.
I have a table which includes a user entered date and time, for example
'22-march-2004 08:36'.
From this I would like to be able to determine the shift that the datetime
belongs to. However the shifts can occur over two days (for example, from
18:00 Monday to 05:59 Tuesday) so I can't simply look at the time and deduce
it that way.
Over the course of a week there are 12 possible shifts that a datetime can
occur in.
Could this be structured in a table and obtained through lookups? How would
I structure the table to get the shift?
What about an enumerated datatype? Again, how do I structure it
I'm looking to implement this on an ADP linked to SQL server 2000 so there
are opportunitities there, its just sorting out the logic first.
As I said, I'm quite stuck at this. Any and all suggestions are gratefully
received.
Kind regards
Chris Strug.
I'm having a problem thinking this one through and was wondering if someone
could provide me with some inspiration.
I have a table which includes a user entered date and time, for example
'22-march-2004 08:36'.
From this I would like to be able to determine the shift that the datetime
belongs to. However the shifts can occur over two days (for example, from
18:00 Monday to 05:59 Tuesday) so I can't simply look at the time and deduce
it that way.
Over the course of a week there are 12 possible shifts that a datetime can
occur in.
Could this be structured in a table and obtained through lookups? How would
I structure the table to get the shift?
What about an enumerated datatype? Again, how do I structure it
I'm looking to implement this on an ADP linked to SQL server 2000 so there
are opportunitities there, its just sorting out the logic first.
As I said, I'm quite stuck at this. Any and all suggestions are gratefully
received.
Kind regards
Chris Strug.