NULL Function
SELECT *
ISNULL(expression, replacement_value) AS ALIAS
FROM table
Example:
SELECT name, salary,
ISNULL(salary + bonus, salary) AS total_compensation
FROM salaries;Last updated
SELECT *
ISNULL(expression, replacement_value) AS ALIAS
FROM table
Example:
SELECT name, salary,
ISNULL(salary + bonus, salary) AS total_compensation
FROM salaries;Last updated