Question: Consider the following queries: 1 . SELECT * FROM invoice WHERE customer _ id IN ( SELECT customer _ id FROM customer WHERE first _
Consider the following queries:
SELECT FROM invoice
WHERE customerid IN
SELECT customerid FROM customer
WHERE firstname like J;
SELECT invoice. FROM invoice
INNER JOIN customer
ON customer.customerid invoice.customerid
WHERE firstname like J;
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
