Re: [SQL] Exclusion List

2001-08-01 Thread Michael Richards
> "Michael Richards" <[EMAIL PROTECTED]> writes: >> The reduction of the list doesn't seem to be terribly efficient. >> Here are some strategies I've been looking at: > >> select id from users WHERE >> id not in (select userid from sentletters where lettertype=1) AND >> aclgroup IN (1,2); > > Try

Re: [SQL] Exclusion List

2001-08-01 Thread Tom Lane
"Michael Richards" <[EMAIL PROTECTED]> writes: > The reduction of the list doesn't seem to be terribly efficient. Here > are some strategies I've been looking at: > select id from users WHERE > id not in (select userid from sentletters where lettertype=1) AND > aclgroup IN (1,2);