The following queries produce the same results.
select 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
Q51: Joining tables or using a subquery may
Q53: Specifying the attribute names in the select
Q55: The UNION clause is used to combine
Q58: The natural join is very rarely used.
Q64: Subqueries can only be used in the
Q69: A subquery in which processing the inner
Q70: EXISTS takes a value of false if
Q77: When EXISTS or NOT EXISTS is used
Q80: The following SQL statement is an example
Q84: MULTISET is similar to the table datatype.
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