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
Q26: A procedure is:
A) stored outside the database.
B)
Q31: The MERGE command:
A) allows one to combine
Q41: The following code is an example of
Q48: There is a special operation in SQL
Q55: The UNION clause is used to combine
Q57: Transaction integrity commands are not used to
Q65: The following code is an example of
Q70: EXISTS takes a value of false if
Q72: In order to find out what customers
Q77: When EXISTS or NOT EXISTS is used
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