SQL SERVER CASE PUZZLE QUERY What would be the output of following query? 😄 SELECT CASE WHEN 1=1 THEN 'Vikas Ahlawat1' WHEN 2=2 THEN 'Vikas Ahlawat2' ELSE 'Vikas Ahlawat3' END AS Name Ans: Newer Older Comments abhi6 January 2017 at 10:48interesting..ReplyDeleteRepliesVikas11 January 2017 at 03:34Thanksfor more such questions you can follow this link http://www.interviewquestionspdf.com/2014/12/sql-server-interview-questions-and.htmlDeleteRepliesReplyReplySEDHU27 March 2017 at 06:10CAN U PLEASE EXPLAIN...........ReplyDeleteRepliesReplyUnknown27 November 2017 at 10:23case is just as switch.. when first case is true then it get terminated from that point only.ReplyDeleteRepliesReplyAdd commentLoad more...
interesting..
ReplyDeleteThanks
Deletefor more such questions you can follow this link http://www.interviewquestionspdf.com/2014/12/sql-server-interview-questions-and.html
CAN U PLEASE EXPLAIN...........
ReplyDeletecase is just as switch.. when first case is true then it get terminated from that point only.
ReplyDelete