Ok I’m a beginner at mysql, but I have been trying to create a query for many to many tables.
My curent structure is:
Products
- sku
- product_name
- price
- etc..
Categories
- id
- category
products_categories
- product_id (from sku column)
- category_id
How can I query the following:
- All products in a category
- All categories associated with a product
All products in a category
All categories associated with a product