SQL ISNULL Functions
Last updated
Last updated
Look at the following "Products" table:
Suppose that the "UnitsOnOrder" column is optional, and may contain NULL values.
Look at the following SELECT statement:
In the example above, if any of the "UnitsOnOrder" values are NULL, the result will be NULL.
The SQL Server ISNULL() function lets you return an alternative value when an expression is NULL: