SQL Case Statement

Cases are used to return a specific value (hardcoded or field from the table) based on a condition.

Example:

CASE 
 WHEN [Condition] THEN [Return Value/ Field]
 ELSE [If When condition not met return this value/field]
END;


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *