Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql with case and between
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00651902
Message ID:
00651933
Views:
16
Removing the between when clause lets the query run.

The problem is that I need to sum the number of cases for a given shift. Shift 1 may be between 07:00 and 14:59 and shift 2 between 15:00 and 23:59. I was attempting to use the between clause to determine if the which shift the begintime field fell in.

Kirk
Previous
Reply
Map
View

Click here to load this message in the networking platform