sql server - is "NOT EXISTS" bad SQL practice? -


in sql server, using "not exists" in queries considered bad practice , i've heard microsoft code reviews test not exists , flag these warnings. why not exists considered bad practice , join operators preferred on not exists?

given that:

  • any reasonably query optimizer able convert between “not exists”, “exists” , "joins", there no performance difference these days.

  • “not exists” can easier read joins.

therefore don’t consider “not exists” bad practice in general case.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -