NOT_EQUALS

All functions > COMPARISON > NOT_EQUALS

Returns TRUE if the first value does not equal the second value

Syntax

NOT_EQUALS(expr1, expr2[, digits])
sql

Arguments

ParameterTypeRequiredDescription
expr1BIGINTYesFirst value to compare
expr2BIGINTYesSecond value to compare
digitsBIGINTNoOptional decimal precision for numeric comparisons

Returns

BOOLEAN - TRUE if values are not equal, FALSE otherwise, NULL if either value is NULL

Notes

  • Both values must be of the same or compatible types
  • NULL comparisons always return NULL (three-valued logic)
  • For strings, performs case-sensitive comparison
  • For numeric types, supports optional decimal precision
  • Opposite of EQUALS function

See also

Last update at: 2025/10/13 10:23:46