Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL:NORTHWIND - Create the following summary query for each ProductName for all Beverage products: List the average quantity ordered, the highest quantity ordered, the average

SQL:NORTHWIND

- Create the following summary query for each ProductName for all Beverage products: List the average quantity ordered, the highest quantity ordered, the average product sales amount, and the total product sales amount (Product Sales is a calculate field: Unit Price * Quantity * (1 Discount)). Use the Unit Price at the time of the sale (Order Details table).

- Create a query using a subquery within the FROM clause to retrieve the top 8 customers based on the number of orders received. The outer query should display the customer id, the date of the first order, the date of the last order and the total number of orders received.

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

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions