How can we replace NULL values with a default fallback string?
COALESCE returns the first non-NULL expression from its arguments.
Replacing null phone numbers, default customer names, preventing UI null crashes.
SELECT
name,
COALESCE(phone, 'Unknown') AS phone
FROM employees;Practice typing production-grade SQL code for COALESCE.