Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF in Select
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
IIF in Select
Miscellaneous
Thread ID:
00832341
Message ID:
00832341
Views:
43
In VFP I can do this:
SELECT LocationID, SUM(IIF(ShiftStart < CTOT('09/25/2003 1:30:00 PM') .AND. ShiftEnd > CTOT('09/25/2003 1:59:59 PM'),1,0))/2 as one30_pm ;
	FROM Emp JOIN Shift ;
	ON emp.empid = shift.empid ;
	GROUP BY LocationID
How can I do this in SQL Server?

TIA
Rip Ryness
International Falls, MN
Next
Reply
Map
View

Click here to load this message in the networking platform