Click here to Skip to main content
15,880,427 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I Know the Syntax...

CASE column_name
WHEN condition1 THEN result1
WHEN condition2 THEN result2
...
ELSE result
END

i need Advantages & Disadvantages of CASE Expersion
Posted
Comments
E.F. Nijboer 25-Nov-14 7:18am    
This sounds like homework and can easily be found using any of the available search engines. This isn't a question for codeproject. What have you tried? Why would you assume advantages? Or why do you suspect disadvantages?
Maciej Los 25-Nov-14 17:02pm    
The question makes no sense. We can talk about advantages or disadvantages only in case when there is a comparable object.

1 solution

Please read my comment to the question.

CASE[^] evaluates a list of conditions and returns one of multiple possible result expressions.
When to use CASE? When you want to avoid writing of several IF's.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900