sql for does not equal code example Example 1: not equal operator sql <> Not Equal != Not Equal Example 2: not equal in sql row <> value