Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL Multiple Cases

SELECT customer_id, first_name,
CASE
    WHEN country = 'USA' THEN 'United States of America'
    WHEN country = 'UK' THEN 'United Kingdom'
END AS country_name
FROM Customers;
 
PREVIOUS NEXT
Tagged: #SQL #Multiple #Cases
ADD COMMENT
Topic
Name
1+2 =