Question: Consider the following queries: 1 . SELECT * FROM customer WHERE support _ rep _ id IN ( SELECT employee _ id FROM employee WHERE

Consider the following queries:
1. SELECT * FROM customer
WHERE support_rep_id IN
(SELECT employee_id FROM employee
WHERE first_name = 'Steve');
2. SELECT customer.* FROM customer
INNER JOIN employee
ON customer.support_rep_id = employee.employee_id
WHERE employee.first_name = 'Steve';
Which of these would be the most efficient?

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!