Difference between <> and NOT operator in Microsoft Access?
By Abigail Rogers •
What might the difference between "<>" and "NOT" operator be when used in Microsoft Access?
2 Answers
NOT is a unary operator which complements its argument, eg
NOT(TRUE)is equivalent toFALSE
In contrast <> is a binary operator which compares two values, eg
1<>0is equivalent toTRUE, or toNOT(1=0)
This latter equivalence is the only sense in which the two are connected.
NOT Operator Operation involving NOT operator is known as ‘Logical Negation’. This operation is performed on only one input or operand. It returns the value of TRUE if the input is FALSE and vice-versa.Not Operator is the not true of your operation like
Not Null (is not null)
Not = (not equal)
Not In (Not Exist)
but <> is just different from any value or not = to the value