Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

Re: SELECT Query with NOT EQUAL TO Condition in WHERE Clause

$
0
0

Find the answer here:

Negative conditions in WHERE clause (but not over indexed fields)

 

I have just done a small report with your select and tested in SE30, the selection without <> in where clause took 9.328 microsec. With '<>' operator the program took 51.086 microsec.

 

As you can see in the link above, if you use the table index in the selection, use the '<>' operator in a non-index field could help the selection, otherwise better not to use.

 

Regards,

Felipe

 

Message was edited by: Felipe Simionatto


Viewing all articles
Browse latest Browse all 8451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>