Advertisement
MaximGGoose

Mindbox_ProductsCategories

Mar 5th, 2023 (edited)
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.17 KB | Source Code | 0 0
  1. SELECT p.name ProductName, c.name CategoryName
  2. FROM Products p
  3. LEFT JOIN products_categories pc ON p.id = pc.product_id
  4. LEFT JOIN Categories c ON pc.category_id = c.id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement