SQL - CASE Expressions
Given the table
Assuming the row with
Employees with columns id, bonus (nullable), what is the result of this query?SELECT id, COALESCE(bonus, 100) AS bonus_amount FROM Employees WHERE id = 1;
Assuming the row with
id=1 has bonus = NULL.