not
operator
Applies to: Databricks SQL Databricks Runtime
Returns logical negation of the argument. This operator is an alias for ! (bang sign) operator.
Syntax
not expr
Arguments
expr
: A BOOLEAN expression.
Returns
A BOOLEAN.
Examples
> SELECT not true;
false
> SELECT not false;
true
> SELECT not NULL;
NULL
Related functions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for