In this post explains how to use the ISNULL function in SQL Server (Transact-SQL) with syntax and examples.
In SQL Server (Transact-SQL), the ISNULL function lets you return an alternative value when an expression is NULL.
The syntax for the ISNULL function in SQL Server (Transact-SQL) is:
The value to test whether it is NULL.
The value to return if the expression is a NULL value.
The ISNULL function can be used in the following versions of SQL Server (Transact-SQL):
Let's look at some SQL Server ISNULL function examples and explore how to use the ISNULL function in SQL Server (Transact-SQL).
For example: