MySQL Forums
Forum List  »  Newbie

Select by number of matches
Posted by: Kerry Wilson
Date: July 21, 2005 11:24AM

I have a product / category mapping table and I would like to be able to Retrieve all products that match 3 of these categories. Could someone point me in the right direction?

LIKE:

SELECT * FROM Products WHERE catId IN ( 3, 4, 5 )

Obviously the above would return products that are in any category mentioned....

Thanks...

Options: ReplyQuote


Subject
Written By
Posted
Select by number of matches
July 21, 2005 11:24AM


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.