-1

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

Amit Dash
  • 584
  • 8
  • 21

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
  • 168,305
  • 31
  • 280
  • 331