Sai Reddy

Sai Reddy

  • NA
  • 214
  • 31.6k

1=1 and 2=2 in SQL Server

May 13 2018 5:44 AM
 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?

Answers (2)