Question: 1 3 - ( 2 0 points ) Consider the following six relations for an order - processing database application: CUSTOMER ( Cust# , Name,

13-(20 points) Consider the following six relations for an order-processing database application:
CUSTOMER(Cust#, Name, City)
ORDER(Order#, Date, Cust#, Ord_amt)
ORDER_ITEM(Order#, Item#, Qty)
ITEM(Item#, Unit_price)
SHIPMENT(Order#, Warehouse#t, Ship_date)
WAREHOUSE(Warehouse#, City)
Specify the following queries in SQL:
a. List the Order# and Ship_date for all orders shipped from Warehouse# W2.
b. List the WAREHOUSE information from which the CUSTOMER named Jose Lopez was supplied his
orders. Produce a listing: Order#, Warehouse#.
c. Produce a listing Cname, No of_orders, Avg_order_amt, where the middle column is the total number of
orders by the customer and the last column is the average order amount for that customer and the customer
has had at least 5 orders.
d. List the Order# for orders that were shipped from all warehouses that the company has in New York.
1 3 - ( 2 0 points ) Consider the following six

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!