Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When we use operators with where clause in sql server then what's the best way to use not equal operators(<> OR !=)
Posted

should-i-use-or-for-not-equal-in-tsql[^]

Hope it will clarify..
 
Share this answer
 
Performance wise there is no difference, so it's largely a matter of style.
However, Access 2010 only supports "<>", not "!=" so for compatability, it would be better to avoid "!=".

But...I use "!=" because I find it more readable, and consistent with teh programming languages I use and am used to reading.

Up to you: as long as you pick one and stick with it, you will be fine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900