Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. select SupplierName, count(distinct(Quantity)) from Suppliers
  2. join Products on (Suppliers.SupplierID=Products.SupplierID)
  3. join OrderDetails on (Products.ProductID = OrderDetails.ProductID)
  4. group by SupplierName
  5. order by count(distinct(Quantity)) desc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement