How to use "CASE" keyword in SELECT statement?

Showing Answers 1 - 3 of 3 Answers

CASE expr WHEN comparison_expr1 THEN return_expr1

[WHEN comparison_expr2 THEN return_expr2

WHEN comparison_exprn THEN return_exprn

ELSE else_expr]

END

  Was this answer useful?  Yes

AVADHESH

  • Sep 30th, 2011
 

Code
  1. span style="color: #ff0000;">'1' THEN 'Active'

  2.           WHEN '0' THEN 'Deactive'

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions