Question: Question 1: Consider the following six relations for an order-processing database application in a company (same as in Exercise 6.19 of the 6th edition): CUSTOMER
Question 1:
Consider the following six relations for an order-processing database application
in a company (same as in Exercise 6.19 of the 6th edition):
CUSTOMER (Cust#, Cname, City)
ORDER (Order#, Odate, Cust#, Ord_Amt)
ORDER_ITEM (Order#, Item#, Qty)
ITEM (Item#, Unit_price)
SHIPMENT (Order#, Warehouse#, Ship_date)
WAREHOUSE (Warehouse#, City)
Here, Ord_Amt refers to total dollar amount of an order; Odate is the date the order was placed; Ship_date is the date an order (or part of an order) is shipped from the warehouse. Assume that an order can be shipped from several warehouses.
Specify the following queries in both RA and RC on the database schema given above.
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#.
(No c.)
d. List the orders that were not shipped within 30 days of ordering.
e. 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
Get step-by-step solutions from verified subject matter experts
