SQL - Conditional Functions
NULLIF
returns NULL if two expressions are equal, otherwise it returns the first expression.
NVL
takes in 3 arguments and returns the 2nd if the first is not null, otherwise, it returns the 3rd argument
DECODE
- takes in a series of arguments and works like CASE or IF-THEN-ELSE logic
- it decodes expression after comparing it to each search value
COALESCE
- takes in multiple arguments and returns the first non-null value in the list
- if the first expression is not null, it returns that expression; Otherwise, repeat for the next expression