I thought this might work, but then I realized I had left something
out: I'm selecting a maximum and minimum time for an event for each
business day in the two week period.
Since our business day starts the previous day at about 11:00 PM
(really, whenever third shifters start), the minimum time for that
business day might be 11:15 PM the previous day, while the maximum time
might be 6:30 AM on the actual day. The whole reason behind getting
the maximum and minimum times is to figure out the time difference
between them.
Perhaps I do need two queries: one with performing a union between
times > 11:00 PM Times < 7:00 AM and the second for day shifters?
Sathyaram Sannasi wrote:
Quote:
How about
col between timestamp1 and timestamp2 and (time(col) > 2300 or
time(col) < 0700)
Sathyaram |