UPS relies on a company-wide information system to track shipped items using identifying details like item number, weight, dimensions, insurance amount, destination, and delivery date. Shipped items enter the UPS system at a retail center, which are identified by type and address. The information system then tracks items as they make their way to their destination via one or more standard UPS transportation events.
UPS prides itself on having up to date information on the processing .docx
1. UPS prides itself on having up to date information on the
processing of current location of shipped item To do this. UPS
relies on a company wide information system Shipped items can
be characterized by intern number (unique). weight. dimensions.
insurance amount, destination and final delivery date Shipped
term are received into the UPS system.. at a single retail center.
Retail centers are characterized by their type (store drop off
box. etc). uniquely, and address. Shipped -terns make their wav
to their destination via one or more standard UPS transportation
events These Retrieve the item numbers of items whose
insurance is above $100 and destination is "Houston" Retrieve
the delivery date and delivery route of item number 123
Retrieve the retail centers and delivery date for every item
whose weight is Lew than 3lbs. Retrieve the destination of all
items receded by retailer center 45 and the type of
transportation event. Create a view in which a person can enter
their item number and locate its delivery route. List all data
dependencies, assuring that they arc all represented in this
table. Make the Table INF, 2NF and 3NF
Solution
2. (i) This table contains (S_Id, S_Name,DOB, Street,
S_Address, State, Zip, Subject )
so the functional dependencies of the table is as follows,
S_Id -> S_Name, DOB, Street, subject
Street -> S_Address, State, Zip
(ii) so, here the candidate key is S_Id. because S_id can
2. determine all other Non-prime attribute in this table.
(S_Id)+ = { S_Name,DOB, Street, S_Address, State, Zip,
Subject}
so, candidate key = S_Id
1NF :-
This table is already in 1NF, because by default every table is in
1NF.
2NF:-
This table is in 2NF, because there is no partial dependency in
the table. only one prime attribute is there.
so it holds full functional dependency.
3NF:-
This table is not in 3NF, because there is a transitive
dependency in the table. which means there is a dependency
between Non-prime attributes.
Prime attributes = S_Id
Non-prime attributes = { S_Name,DOB, Street, S_Address,
State, Zip, Subject }
Street -> S_Address, State, Zip ( it is transitive dependency
because Street is Non-prime )
we can decompose the table into two as follows ,
take closure property of Street, (street) + = {S_Address, State,
Zip}
Now decompose the above table into two,
Table 1 : S_Id, S_Name,DOB, Street, S_Address, State, Zip,
3. Subject
FD of table 1, S_Id -> S_Name, DOB, Street, subject
table 1 is in 3NF, because there is no transitive dependency.
Table 2 : Street, S_Address, State, Zip
FD of table 2 , Street -> S_Address, State, Zip
here Streetis the Candidate keyor super key.
table 1 is in 3NF, because there is no transitive dependency.
so, the table holds 3NF also.
--------------Thanks-----------------------pls give me good points
as feedback---------------------