Conditional functions
Conditional expressions choose or normalize values.
Their result branches must resolve to compatible types. Explicit casts are useful when mixing numeric, text, or temporal arguments.
COALESCE can normalize a missing grouping label, but replacing NULL with a real business key can change join semantics. Keep missing-value presentation separate from matching keys when that distinction matters.
Last modified on November 23, 2026