Question: 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;
 Final Exam 2:37:46 remaining Which query will show all sales reps

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!