which is more efficent not in(' ',' ') or <>" " and <>" "

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to make a query more efficient working with large tables. Which
would be the more efficent use?
not in(' ',' ') or
<>" " and <>" "
or possibly another formula or combination...

Thank you,

Wayne Anderson
 
It probably doesn't make any difference. The engine that runs the query
will probably optimize them both the same.
 
I agree with John Spencer about it all running the same; however, I like Not
In as it looks cleaner plus easier to add or subtract another item to the
list.
 
Dear Wayne:

In discussing the performance of a query, all issues can be divided into two
classes: those that affect hard drive accesses and those that do not.
Those that do not affect the number of hard drive accesses have very, very
little to do with performance. Those that do have almost everything to do
with performance. This issue does not.

Tom Ellison
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top