nabajyoti.b
SSCrazy
Points: 2177
More actions
January 8, 2009 at 7:19 am
#129948
declare @a char(4)
set @a='Eur'
select iff(@a="Eur","Euro","chke")
is giving me the below error
Msg 102, Level 15, State 1, Line 4
Incorrect syntax near '='.
ChrisM@Work
SSC Guru
Points: 186127
January 8, 2009 at 7:20 am
#923297
Look up CASE in BOL.
For fast, accurate and documented assistance in answering your questions, please read this article.Understanding and using APPLY, (I) and (II) Paul WhiteHidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply