Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: SELECT

Re: SELECT

From: Ken Denny <ken_at_kendenny.com>
Date: Fri, 18 Oct 2002 23:45:43 GMT
Message-ID: <Xns92ABC9C27D5F7kendenny@65.82.44.8>

johnn <john62_at_electronmail.com> wrote in news:3DB09AD5.5FB6370_at_electronmail.com:

> Okay. Let's say I have a list of usernames in the table users. Let's
> say I have a list of bad users in the table blacklist. Now, let's say I
> want to select all the usernames from the table users that are not in
> the table blacklist? How do I do this? I was thinking of stuff like
> the following:
>
> select * from users where username not in (select * from blacklist);
>
> but it doesn't work.

select * from users where username not in (select username from blacklist);

-- 
Ken Denny
http://www.kendenny.com/

I didn't attend the funeral, but I sent a nice letter saying I approved of 
it. - Mark Twain
Received on Fri Oct 18 2002 - 18:45:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US