Question: Based on the following query: SELECT CUS_CODE, MAX(LINE_UNITS*LINE_PRICE) FROM CUSTOMER NATURAL JOIN INVOICE NATURAL JOIN LINE WHERE CUS_AREACODE = 615 GROUP BY CUS_CODE; How would
Based on the following query:
SELECT CUS_CODE, MAX(LINE_UNITS*LINE_PRICE)
FROM CUSTOMER NATURAL JOIN INVOICE NATURAL JOIN LINE
WHERE CUS_AREACODE = ‘615’
GROUP BY CUS_CODE;
How would you rewrite the query to ensure that the index you created in Problem 31 is used?
Step by Step Solution
3.34 Rating (163 Votes )
There are 3 Steps involved in it
You need to use the INDEX optimizer hi... View full answer
Get step-by-step solutions from verified subject matter experts
