-1

I just wanted to know if there is a difference between <> and != when expressing inequality in SQL queries.

Amit Dash
  • 494
  • 6
  • 19

1 Answers1

1

Technically these both function are the same, so you may choose whichever you find more readable.

The duplicate question has a relevant line:

'<>' is from the SQL-92 standard, '!=' is a proprietary T-SQL operator.

Also to note that there are may database which doesnot != but since you have tagged it as SQL Server then there is no differenc between them

Community
  • 1
  • 1
Rahul Tripathi
  • 161,154
  • 30
  • 262
  • 319