Hi
In below condition i wanto check for Null Value also. If Value is Null then also No
SQL
case when [OnBreak] = 0 then 'No' else 'Yes' End as [OnBreak],Thanks
Hi
In below condition i wanto check for Null Value also. If Value is Null then also No
case when [OnBreak] = 0 then 'No' else 'Yes' End as [OnBreak],Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit MohantyRank #112 · 20K reputationPosted Apr 7, 2023, 5:04 AM EDT
case when [OnBreak] = 0 then 'No' when [OnBreak] IS NULL then 'No' else 'Yes' End as [OnBreak]