Question: Relational Algebra / Calculus Given the following database scheme: CUSTOMER ( Cust# , Cust _ Name, Cust _ City ) ORDER ( Order# , Ord
Relational Algebra Calculus
Given the following database scheme:
CUSTOMER Cust# CustName, CustCity
ORDER Order# OrdDate, Cust# OrdAmt
ORDERITEM Order# Item# Qty
ITEM Item# ItemName, UnitPrice
SHIPMENT Order# Warehouse# ShipDate
WAREHOUSE Warehouse# WarehouseCity
WAREHOUSEITEM Item# Warehouse# Qty
Write down relational expressions either relational algebra or relational calculus for the following queries.
a List the Order# and ShipDate for all orders shipped from Warehouse#
b List Order# OrdDate and ShipDate for orders which have not been shipped Hint: items are not shipped if
shipdate is null
c Produce a list of Item# that is not found in any warehouse in Melbourne.
d List Item# and ItemName that are stored in all warehouses in Sydney.
e List the Cname and City of the customers who have ordered the most in terms of money
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
