Professional Documents
Culture Documents
ERD: UPS System: Shipped - Item Retail - Center
ERD: UPS System: Shipped - Item Retail - Center
SHIPPED_ITEM
RETAIL_CENTER
item_num PK
weight
dimensions
insurance_amt
destination
delivery_date
sched_num FK
TRANSPO_EVENT
sched_num PK
type_of_transp
o
delivery_route
retail_id PK
address
item_num FK
2. Create a query that will locate the current location of the item.
Select
AS
FROM
shipped_item.item_number,
shipped_item.weight,
shipped_item.dimensions,
shipped_item.insurance_amount,
shipped_item.destination,
shipped_item.delivery_date,
retail_center.type,
retail_center.address
location
shipped_item
INNER JOIN
retail_center
ON
shipped_item.item_number= retail_center.item_number;
3. Create a query that will identify the route of an item
Select
shipped_item.item_number,
shipped_item.weight,
shipped_item.destination,
transportation_event. type_of_transportation,
transportation_event.delivery_route
AS
Route_of _an_item
FROM
shipped_item
INNER JOIN
transportation_event
ON
shipped_item.schedule_number=transportation.schedule_number