About 26,400 results
Open links in new tab
  1. SQL Server NULLIF () Function - W3Schools

    Definition and Usage The NULLIF () function returns NULL if two expressions are equal, otherwise it returns the first expression. Syntax NULLIF (expr1, expr2)

  2. NULLIF (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · NULLIF returns the first expression if the two expressions are not equal. If the expressions are equal, NULLIF returns a null value of the type of the first expression.

  3. SQL NULLIF - Syntax, Use Cases, and Examples | Hightouch

    The SQL NULLIF function is used to compare two expressions or values and return NULL if they are equal. It provides a way to handle specific cases where you want to treat equality as a special …

  4. NULLIF () Function in SQL Server - GeeksforGeeks

    Jul 23, 2025 · The NULLIF () function simplifies SQL queries by reducing the need for complex conditional logic using CASE statements. It is commonly used to prevent errors such as division by …

  5. SQL NULLIF Function

    In this tutorial, you will learn how to use the SQL NULLIF function to compare two values and return NULL if they are equal.

  6. T-SQL NULLIF expression in SQL Server

    The NULLIF expression in SQL Server is a useful function that allows you to compare two expressions and return a null value if they are equal. It helps you handle situations where you want to avoid …

  7. SQL Server: NULLIF Function - TechOnTheNet

    In SQL Server (Transact-SQL), the NULLIF function compares expression1 and expression2. If expression1 and expression2 are equal, the NULLIF function returns NULL.

  8. SQL - NULLIF () Function - Online Tutorials Library

    The SQL NULLIF () function is, used to verify whether the two expressions are equal or not. It accepts two parameters expr1 and expr2 and returns NULL, if both the expression are equal; else returns the …

  9. SQL Server NULLIF - Tutorialsbook

    What is NULLIF in SQL Server? NULLIF is a function available in most RDBMS to compare 2 expressions and determine if they are same or different. It can compare both numeric and string …

  10. SQL NULLIF () Explained - Database.Guide

    May 8, 2022 · Most major RDBMS s support the NULLIF() operator, which returns NULL if both of its arguments are equivalent. If the arguments not equivalent, NULLIF() returns the first argument.