Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

8. Show the maximum and minimum TotalAmount in the INVOICE table. 9. Show the average of TotalAmount for Customer #1 based on the INVOICE table.

image text in transcribed

8. Show the maximum and minimum TotalAmount in the INVOICE table. 9. Show the average of TotalAmount for Customer \#1 based on the INVOICE table. 10. Using the INVOICE_ITEM table, list the InvoiceNumber as well as the sum of Quantity for each and every invoice separately. (Hint: use GROUP BY for this and the following problems) 11. Using the INVOICE_ITEM table, count how many unique (i.e., distinctive) items are there for each and every invoice separately. 12. Using the INVOICE_ITEM table, list the InvoiceNumber as well as the sum of Quantity for each and every invoice separately, but only consider those items whose quantities are larger than 3 and whose UnitPrice is larger than $3.00 in your calculation. 13. Using the INVOICE_ITEM table, list the InvoiceNumber as well as the sum of Quantity, but only for those invoices whose sum of Quantity is larger than 15. Sort the results in descending order by an invoice's total Quantity

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions