‎2007 Sep 21 6:22 PM
Hi,
In select statement, the where conditions could use 'IN select-range', while compare to IN (XX,FF,GG)/NOT IN((XX,FF,GG)), which is better on performance?
Thanks!
‎2007 Sep 21 6:26 PM
Better performance is IN and if you use not in then you could get bad performance than in operator
Thanks
Seshu
‎2007 Sep 21 7:04 PM
NOT will cause the database to do a full table scan. Imagine if you want to find a word in the dictionary and all you know is that the word is not "shoe".
It'd take a while.
Rob
‎2007 Sep 21 10:48 PM
‎2007 Sep 23 7:12 AM
Hi Edgar
remember one point when your writing where condition
don't use negative conditions in the where condition like NOT etc..
Selection Criteria
reward if usefull
‎2007 Oct 03 12:23 PM
as far as optimization is concerned IN is better dan NOT IN ..