ποΈ case
CASE is a conditional expression. It returns the result in the THEN clause if a condition in the WHEN clause evaluates to true. If none of the conditions evaluate to true, it returns the result in the optional ELSE clause. If ELSE is not present, NULL is returned.
ποΈ coalesce
Returns the first non-NULL expression among the input parameters. Returns NULL if non-NULL expressions cannot be found.