Eine Einführung in

SQL

Conditional values

PostgreSQL
The SQL Standard is the CASE statement


Specific to PostgreSQL
Any number of cases may be used.