MySQL Forums
Forum List  »  Newbie

difficulty in making a search with a choice of certain categories
Posted by: Abdullah Bahar
Date: November 13, 2017 12:35AM

I have difficulty in making a search with a choice of certain categories. Here's the table

table A
-----------
pro_id| name | price
-----------------------
1 | product 1 | 100
2 | product 2 | 110
3 | product 3 | 120


table B
-----------
cat_id| category_name | pro_id
------------------------------
1 | category A | 1,3,
2 | category B | 2,3,

what if the search is limited to category A for a specific product name?

Options: ReplyQuote




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.