Advertisement
sinusinusa

Untitled

Mar 26th, 2024
712
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.22 KB | None | 0 0
  1. SELECT p.ProductName, ISNULL(c.CategoryName, 'Без категории') AS CategoryName
  2. FROM Products p
  3. LEFT JOIN ProductCategories pc ON p.ProductID = pc.ProductID
  4. LEFT JOIN Categories c ON pc.CategoryID = c.CategoryID;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement