Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iif statement in SQL 2000 select statement
Message
 
 
To
24/04/2003 10:53:00
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00781060
Message ID:
00781148
Views:
20
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>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform