Który dostawca jakie produkty dostarcza?
Baza: Northwind, Tabele: dbo.Suppliers, dbo.Products, Kolumny: Country, CompanyName, ProductName, Wynik: 77 rows
[spoiler title=’Rozwiązanie’ collapse_link=’true’]
SELECT S.Country, S.CompanyName, P.ProductName
FROM dbo.Suppliers as S
JOIN dbo.Products as P on S.SupplierID = P.SupplierID
GROUP BY S.Country, S.CompanyName, P.ProductName
ORDER BY S.Country, S.CompanyName, P.ProductName;
[/spoiler]