Question: 1 3 - ( 2 0 points ) Consider the following six relations for an order - processing database application: CUSTOMER ( Cust# , Name,
points Consider the following six relations for an orderprocessing database application:
CUSTOMERCust# Name, City
ORDEROrder# Date, Cust# Ordamt
ORDERITEMOrder# Item# Qty
ITEMItem# Unitprice
SHIPMENTOrder# Warehouse#t Shipdate
WAREHOUSEWarehouse# City
Specify the following queries in SQL:
a List the Order# and Shipdate for all orders shipped from Warehouse# W
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 oforders, Avgorderamt, 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 orders.
d List the Order# for orders that were shipped from all warehouses that the company has in New York.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
