Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer questions 4-7 SQL Assignment 4 Show the average price, lowest price and highest price for all products. Name the columns to match the

Please answer questions 4-7image text in transcribed

SQL Assignment 4 Show the average price, lowest price and highest price for all products. Name the columns to match the function being used. Show the CustomerID and the Average Freight Charge for each customer. Name the Freight column "Average Freight Cost." Show the same information in step 2 but only for customers who have an average freight cost more than $100. 4. Show each Employee's ID along with their first and last name and their most recent order date. 5. Show the ProductID and the number of times the product has been ordered for products ordered more than 50 times. HINT: use the order items table ** 6. Display the OrderID, the pre-discount price (name the column Full Retail Price) for all orders and the final price (name the column Final Price) for all orders. **bonus points for displaying only 2 numbers to the right of the decimal in the Final Price Column*** 7. Northwind traders would like to know how many times each shipper has shipped each product. Write a select query that returns the ProductID, ProductName, ShipperID and Shipper name Company Name) and a field that shows how many times the ShipperID has been used for each product. SQL Assignment 4 Show the average price, lowest price and highest price for all products. Name the columns to match the function being used. Show the CustomerID and the Average Freight Charge for each customer. Name the Freight column "Average Freight Cost." Show the same information in step 2 but only for customers who have an average freight cost more than $100. 4. Show each Employee's ID along with their first and last name and their most recent order date. 5. Show the ProductID and the number of times the product has been ordered for products ordered more than 50 times. HINT: use the order items table ** 6. Display the OrderID, the pre-discount price (name the column Full Retail Price) for all orders and the final price (name the column Final Price) for all orders. **bonus points for displaying only 2 numbers to the right of the decimal in the Final Price Column*** 7. Northwind traders would like to know how many times each shipper has shipped each product. Write a select query that returns the ProductID, ProductName, ShipperID and Shipper name Company Name) and a field that shows how many times the ShipperID has been used for each product

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

Students also viewed these Databases questions