Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iif statement in SQL 2000 select statement
Message
From
25/04/2003 09:44:00
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00781060
Message ID:
00781458
Views:
13
Sergey

Thanks that was great!

Jim


>Jim,
>
>IF is not going to work in SELECT. You can use another form of CASE function.
>CASE WHEN dbo.Made2ManageReport_v.passthrough = 'P'
>  THEN 'PASS THROUGH' ELSE 'BACK TO BACK' END AS something
Also, I wouldn't recomend to use double quotes for string literals because it'll fail if SET QUOTED_IDENTIFIER is ON.
>
>>Okay I enjoyed the case statement so much I tried an IF statement.
>>
>>can this work?
>>
><snip>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform