Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL 2000 syntax case on 2 coulmns?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL 2000 syntax case on 2 coulmns?
Miscellaneous
Thread ID:
00498721
Message ID:
00498721
Views:
47
I need to take VFP code and create a SP to do likewise. It's a cross tab so this is what I have currently:
SUM(IIF(ds_progedd.dbo.Demos.strata=2
and type ='IMMU',1,0)) AS standard_immu ,

How do you Case on 2 columns
SUM(caseds_progedd.dbo.Demos.strata when 2
and type when 'IMMU' then 1 else 0) AS standard_immu ,

TIA

__Stephen
Next
Reply
Map
View

Click here to load this message in the networking platform