Should I use != or <> for not equal in T-SQL?
Asked 07 September, 2021
Viewed 2.5K times
  • 56
Votes

I have seen SQL that uses both != and <> for not equal. What is the preferred syntax and why?

I like !=, because <> reminds me of Visual Basic.

14 Answer