Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT p.name ProductName, c.name CategoryName
- FROM Products p
- LEFT JOIN products_categories pc ON p.id = pc.product_id
- LEFT JOIN Categories c ON pc.category_id = c.id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement