"SQL Advanced Course"

 

 

 

 

example:

 

 

 

 

 

 

 

 

 

 

 

 

 


 

 

Note that the last must be written on the ELSE statement.

CASE expression introduced at the beginning of time we have learned, if not specified expressions CASE ELSE clause, the results will be processed into default ELSE NULL. Now I know the reason I want to emphasize the very beginning ELSE clause habitually written on it when using the CASE expression?

 

 

 


 

 

 


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 Exercises:

 

 

 

 

 

 

 

 

 

 

 

 

 


 

 

 

 

 

 Deduplication:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

                                                   

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

 

 

 

 

 

 

 

 

 

 

 

 


Guess you like

Origin www.cnblogs.com/JasonPeng1/p/12110109.html