Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Final Exam 2 : 3 7 : 4 6 remaining Which query will show all sales reps who do not have any customers? Select all

Final Exam
2:37:46 remaining
Which query will show all sales reps who do not have any customers? Select all that apply.
SELECT *
FROM salesrep
WHERE srepno =(SELECT DISTINCT srepno FROM customer);
SELECT s.*
FROM salesrep s LEFT JOIN customer c
ON s.srepno=c.srepno
WHERE s.srepno IS NULL;
SELECT *
FROM salesrep
WHERE srepno NOT IN (SELECT DISTINCT srepno FROM customer);
SELECT s.*
FROM salesrep s LEFT JOIN customer c
ON s.srepno=c.srepno
WHERE c.srepno IS NULL;
SELECT DISTINCT s.*
FROM salesrep s JOIN customer c
ON s.srepno=c.srepno;
image text in transcribed

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

Recommended Textbook for

Students also viewed these Databases questions

Question

What is the specific purpose of an acceptable use policy?

Answered: 1 week ago

Question

Explain all drawbacks of application procedure.

Answered: 1 week ago