Zadanie 18.

Który dostawca jakie produkty dostarcza?

Baza: Northwind, Tabele: dbo.Suppliers, dbo.Products, Kolumny: Country, CompanyName, ProductName, Wynik: 77 rows

23

Rozwiązanie


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;

[collapse]