Question: You have the following 2 tables with sample data: TABLE: customer custno custname custstreet custcity custprov custpcode disc balance creditlimit srepno C 0 1 Jones
You have the following tables with sample data:
TABLE: customer
custno custname custstreet custcity custprov custpcode disc balance creditlimit srepno
C Jones Bloor StW Toronto ON PMU
C John Smith Bloor St Brampton ON LNT
TABLE: salesrep
srepno srepname srepstreet srepcity srepprov sreppcode totcomm commrate
Josh To Green St Brampton ON LLH
Jim West Main St Brampton ON KIP
Which query will show all sales reps who do not have any customers? Select all that apply.
Question options:
SELECT DISTINCT s
FROM salesrep s JOIN customer c
ON ssrepnocsrepno;
SELECT s
FROM salesrep s LEFT JOIN customer c
ON ssrepnocsrepno
WHERE csrepno IS NULL;
SELECT
FROM salesrep
WHERE srepno SELECT DISTINCT srepno FROM customer;
SELECT
FROM salesrep
WHERE srepno NOT IN SELECT DISTINCT srepno FROM customer;
SELECT s
FROM salesrep s LEFT JOIN customer c
ON ssrepnocsrepno
WHERE ssrepno IS NULL;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
