Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

understand the key issues concerning international assignments

Answered: 1 week ago