-
Notifications
You must be signed in to change notification settings - Fork 664
Coalesce
Mathias Rangel Wulff edited this page Jun 12, 2015
·
2 revisions
Show first NON NULL and non-NaN parameter:
SELECT CAST(COALESCE(hourly_wage * 40 * 52,
salary,
commission * num_sales) AS money) AS [Total Salary]
FROM wages
ORDER BY [Total Salary];
See the working example in jsFiddle.
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo