in sql server query where not equal same column values code example Example: not equal operator sql <> Not Equal != Not Equal