Hi, I have seen follwing query some where in google.
SELECT CASE WHEN 1=1 THEN 'A'
WHEN 2=2 THEN 'B'
ELSE 'C' END
Output: A
What is happening in the query?
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
Rafnas T PRank #280 · 8.8K reputationPosted May 13, 2018, 3:37 AM EDT
Suraj KumarRank #353 · 7.1K reputationPosted May 13, 2018, 6:16 AM EDT