Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iif statement in SQL 2000 select statement
Message
De
25/04/2003 09:44:00
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00781060
Message ID:
00781458
Vues:
14
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>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform