MySQL Forums
Forum List  »  Newbie

can't use 'minus', can't use 'not in' what can i use?!?
Posted by: Matt Williams
Date: August 24, 2004 09:01AM

select users.uid, users.name from users
where users.name not in (SELECT users.name FROM installmatrix
inner join users on installmatrix.uid = users.uid
WHERE spid = 1)

1st query works independently
2nd query works independently

put the 2nd into a subquery and use 'NOT IN' and it bombs out.... what gives??
'Not in' was my solution to a lack of MINUS operator in SQL

Options: ReplyQuote


Subject
Written By
Posted
can't use 'minus', can't use 'not in' what can i use?!?
August 24, 2004 09:01AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.