Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference SQL and VFP
Message
From
08/02/1999 11:26:58
 
 
To
07/02/1999 13:06:03
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00184820
Message ID:
00185089
Views:
16
>>
>>select *, sum(uurfact) as fact, SUM(IIF(ureisk='Ja ',1,0)) as reisk from uren where umcode= '20002 ' group by umcode
>>

The TSQL version would look like this:

SELECT *,
SUM(CASE WHEN ureisk = 'Ja ' THEN 1 ELSE 0 END) as ...

HTH

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform