Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IS THERE A "NOTIN" OPERATOR 1

Status
Not open for further replies.

edteck

MIS
Feb 23, 2000
47
IE
I want to select information from a table (string) by excluding that which I don't want. Is there a "NOTIN" operator or equivalent?

e.g. I want to select records do not contain the word "crane" and also the records which do not contain the word "wheel"
 
Hi edteck,
use either
NOT ({myfield} in ["crane", "wheel"])
or
{myfield} <> &quot;crane&quot; AND
{myfield} <> &quot;wheel&quot;

Though be careful as queries with NOT and NOT EQUALS rarely use indexes and can be very slow.
Hope this helps,
phirst.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top