select case when null=null then 'Yes' else 'No' end
what is output and why
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
Shiva Lenka27 reputationPosted Feb 9, 2018, 2:03 AM EST
go
select case when null=null then 'Yes' else 'No' end
output'YES'
SET ANSI_NULLS on
go
select case when null=null then 'Yes' else 'No' end
output'NO'
Ravi PatelRank #439 · 5.7K reputationPosted Feb 9, 2018, 1:49 AM EST