Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- P.ProductName,
- ISNULL(C.CategoryName, 'Без категории') AS CategoryName
- FROM
- Products P
- LEFT JOIN
- ProductCategory PC ON P.ProductID = PC.ProductID
- LEFT JOIN
- Categories C ON PC.CategoryID = C.CategoryID;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement