Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# Questions # 1) # Using orderdetails table, show orderID, productID and NetSales. # NetSales is calculated as: NetSales = Unitprice * Quantity - Discount

image text in transcribed

# Questions

# 1) # Using orderdetails table, show orderID, productID and NetSales. # NetSales is calculated as: NetSales = Unitprice * Quantity - Discount # for NetSales greater than 200.

# Hint : You cannot use alias in where clause, but you can use your definition of new # in the where clause

# 2) # Show customerID, CompanyName, ContactName, OrderID, OrderDate,Shipper Company name # for freights less than $50.

# HINT: Customers Orders Shippers inner joined.

# Q3) # For each customer, show customerID, CompanyName, ContactName, count of orders, sum of quantity

# HINT: customers, orders, orderdetails innerjoined, and group by

# Q4) # We are wondering the count of orders that have been placed by country but only focusing on countries that have more than 50 orders

# HINT : left join customers orders and group by country and having clause

# Q5) # Show all information about customers, their orders, order details, products purchased and suppliers used.

# HINT: All tables mentioned are inner joined #

Q6) # Show Product information where the current products cost less than $20 and sort by price in descending order.

# HINT: not discontinued

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

Students also viewed these Databases questions

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago