Hi everyone,
i want use if condition within case statement so, how can i use?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vinay SinghPosted Jun 18, 2016, 7:34 AM
SELECT CASEWHEN -1 < 1 THEN 'TRUE'
ELSE 'FALSE' END AS Result
GO
-- SQL Server 2012 solutionSELECT IIF ( -1 < 1, 'TRUE', 'FALSE' ) AS Result;
GO
Nirav DaraniyaPosted Jun 18, 2016, 5:26 AM
Asad AliPosted Jun 18, 2016, 3:03 AM