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; Assuming that

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;


Assuming that you follow the recommendations you gave in Problem 29, how would you rewrite the query?

Step by Step Solution

3.50 Rating (190 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

SELECT CUSCODE MAXLINETOTA... View full answer

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 Database Concepts Questions!