Subject Table Scans and !=
Author Robert DiFalco
Is it pretty common knowledge that != on a field always does a table
scan?


For example, it seems better to do this:

SELECT * FROM SomeTable WHERE triState IN ( 0, 1 );

Than it is to do:

SELECT * FROM SomeTable WHERE triState != 2;

Anyway, my queries are a lot faster now that I moved to the first form.

R.