List:General Discussion« Previous MessageNext Message »
From:Ralph Graulich Date:July 14 1999 7:14am
Subject:Re: what's equiv to 'NOT IN'
View as plain text  
Hi Hawke,

>SHOW COLUMNS FROM GamerFinder WHERE Field NOT
>IN('ID','Email','PhoneNum');


You need to get through the logic of SQL, then it's easy. First make a
positive statement. Do it like this:

	[...] WHERE fieldname IN (set-definition)

As next step you negate the complete WHERE-clause, like this:

	[...] WHERE NOT (fieldname IN (set-definition))

For example:

SELECT horse,horse_country FROM dams WHERE NOT (horse_country IN("GB"))



Regards,
Ralph


Thread
what's equiv to 'NOT IN'Hawke Robinson14 Jul
  • Re: what's equiv to 'NOT IN'Martin Ramsch14 Jul
    • Re: what's equiv to 'NOT IN'Michael Widenius30 Jul
  • what's equiv to 'NOT IN'sinisa14 Jul
  • Re: what's equiv to 'NOT IN'Ralph Graulich14 Jul