Answered step by step
Verified Expert Solution
Question
1 Approved Answer
--Your SELECT statement for Problem 5 (i.e., suppliers who supply more different products than all others) --> Correct output of this query for this problem
--Your SELECT statement for Problem 5 (i.e., suppliers who supply more different products than all others)
--> Correct output of this query for this problem is: 7 Ian Devling 12 Martin Bein
This is what I have so far but it doesn't work.
SELECT s.SupplierID, s.ContactName
FROM dbo.Suppliers AS s INNER JOIN dbo.Products AS p
ON s.SupplierID = p.SupplierID
WHERE p.ProductID NOT IN (SELECT pr.ProductID FROM dbo.Product AS pr
WHERE pr.SupplierID = p.SupplierID)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started