Selects result values that satisfy search conditions and value comparisons.
specifies any valid SQL expression that evaluates to a table column whose values are compared to when-expression.
| See | <sql-expression> |
| FedSQL Expressions |
specifies an SQL expression that evaluates to a value.
| See | <sql-expression> |
select Country,
case Country
when 'Algeria' then 'Africa'
when 'Nigeria' then 'Africa'
when 'Netherlands' then 'Europe'
when 'Spain' then 'Europe'
when 'Switzerland' then 'Europe'
when 'China' then 'Asia'
when 'India' then 'Asia'
when 'Venezuela' then 'South America'
else 'Unknown'
end
as Continent from worldtemps;