Question: Modify the query in Problem 30 to include the number of individual product purchases made by each customer. (In other words, if the customers invoice
Modify the query in Problem 30 to include the number of individual product purchases made by each customer. (In other words, if the customers invoice is based on three products, one per LINE_NUMBER, you would count three product purchases. If you examine the original invoice data, you will note that customer 10011 generated three invoices, which contained a total of six lines, each representing a product purchase.) Your output values must match those shown inFigure.
.png)
CUS CODE CUS BALANCE Total Purchases Number of Purchases 10011 10012 10014 10015 0018 0.00 34586 0,00 0.00 216.55 444.00 153.85 422.77 34.97 70.44
Step by Step Solution
3.49 Rating (179 Votes )
There are 3 Steps involved in it
SELECT INVOICECUSCODE CUSTOMERCUSBALANCE Sum LINELIN... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
358-CS-DB (681).docx
120 KBs Word File
