i have 2 tables one market, another brand , so when a client search for a brand i need to return all the markets where he can find that brand.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
assuming your dd looks like this:
market(id, name)
brand(id, name)
market_brand(fk_market_id, fk_brand_id)
your query would look something like this: