The following queries produce the same results.
SELECT DISTINCT Customer_Name, Customer_City
FROM Customer, Salesman
WHERE Customer.Salesman_ID = Salesman.Salesman_ID
and Salesman.Lname = 'SMITH';
SELECT Customer_Name, Customer_City
FROM Customer
WHERE Customer.Salesman_ID =
(SELECT Salesman_ID
FROM Salesman
WHERE Lname = 'SMITH');
Correct Answer:
Verified
Q39: All of the following are part of
Q40: All of the following are advantages of
Q41: The following code is an example of
Q42: The following statement is an example of:
Q43: If the DBA wishes to describe all
Q45: An SQL query that implements an outer
Q46: A natural join is the same as
Q47: Specifying the attribute names in the SELECT
Q48: There is a special operation in SQL
Q49: Figuring out what attributes you want in
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents