Just to expand
IsNull()
is a function that takes 2 parameters. The first is the value to be tested the 2nd is the value you return if the 1st IS NULL else the 1st value is returned.
Maybe you had been using Access or VB or something similar because there there is a function like ISNULL(expression) which returns TRUE if expression is NULL and FALSE in any other case (this function also can be used in querys written in access). ISNULL( ) in TRANSACT SQL is like discribed above.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.