MySQL Forums
Forum List  »  Newbie

Cross Reference Help
Posted by: Kerry Wilson
Date: July 19, 2005 01:52PM

I have a cross reference table with two ids like such:

mappings
dealerId -> int
categoryId -> int

is there any way to quickly select all dealerIds that appear in all the specified categories. Something like this:

SELECT dealerId WHERE categoryId IN ( 14,64,23 ) GROUP BY dealerId

Except, above will return all dealerId's that appear in any category instead of all categories.

Thanks

Options: ReplyQuote


Subject
Written By
Posted
Cross Reference Help
July 19, 2005 01:52PM
July 19, 2005 02:27PM


Sorry, you can't reply to this topic. It has been closed.

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.