NULLIF function in SQL server is used to check the two given expression are equal.
Syntax
NULLIF (Expression,Expression)
Example
In above example the function check for the both expression value, it returns the null value if the both expression are equal else it will return the first expression value.
This function is equal to case function in SQL server.
No comments:
Post a Comment