Question

relatinal model

 Develop a diagram that shows the functional dependencies in the SHIPMENT relation.

2. In what normal form is “SHIPMENT”? Why?

3.Convert SHIPMENT to BCNF if necessary. Show the resulting table(s) with the sample data presented in SHIPMENT.


0 0
Add a comment Improve this question Transcribed image text
Answer #1

1) Dependencies are

(Origin,Destination) -> Distance

#Shipment -> (Origin,Destination)

2) Currently table is in 1st normal form because Distance can be identified by (Origin, Destination) which in the above table is not the primary key combination hence it is not in 2nd normal form.

3) Converting above table

Origin_Destination_Table(PK = Origin_Distance_ID uniquely defines Origin-Destination)

Origin_DistanceID Origin    Destination       Distance

1                           Seatle    Denver             1517

2                           Chicago Dallas               1058

3                           Boston    Atlanta             1214

4                           Denver   Los Angeles      975

Shipment_Table

Shipment#      Origin_DistanceID

409                 1

618                  2

723                 3

824                 4

629                 1


answered by: DUY
Add a comment
Know the answer?
Add Answer to:
relatinal model
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Databases question Consider the following relation that stores information about students living in dormitories at a...

    Databases question Consider the following relation that stores information about students living in dormitories at a college: a. Using these assumptions and stating any others you need to make, list all the non-trivial functional dependencies for this relation b. What are the candidate keys for this relation? Identify the primary keys c. Is this relation in third normal form? if not find a 3NF lossless join decomposition of College that preserves dependencies. d.Is the relation or the resulting set of...

  • Consider a relation R with five attributes A, B, C, D, and E. You are given...

    Consider a relation R with five attributes A, B, C, D, and E. You are given the following functional dependencies: A → B, BC→E, and ED→A. (a) Is R in BCNF? If it is not, decompose it into a collection of BCNF relations. 2: BCNF and 3NF (3 points) Consider the relation schema R with attributes A, B, C, and D and the following functional dependencies: AB→C, AC→B, B→D, BC→A. (a) Is R in BCNF? If it is not, decompose...

  • Suppose we have the following relation (R) that keeps track of car sales: R(car date_sold, salesperson#,...

    Suppose we have the following relation (R) that keeps track of car sales: R(car date_sold, salesperson#, comission_rate, discount) In addition to the functional dependency implied by the primary key (car#), assume the following functional dependencies: date_sold discount salesperson commission_rate Explain why this relation is not in Boyce-Codd Normal Form (BCNF). a. b. Show how you would normalize this relation to achieve Boyce-Codd Normal Form by drawing a new relational schema. Highlight all primary keys by underlining them and use arrows...

  • Consider relation R(A,B,C,D) with functional dependencies: B → C D→ A BA → D CD →...

    Consider relation R(A,B,C,D) with functional dependencies: B → C D→ A BA → D CD → B Decompose R into Boyce-Codd Normal Form (BCNF). Clearly show all intermediary steps.

  • For the following relations and set of FDs: 1. give a key for the relation; 2....

    For the following relations and set of FDs: 1. give a key for the relation; 2. state whether the relation is in BCNF, and if it is not state why: 3. give a set of relations in 3NF equivalent to the original relation 1. (33 points) What is the closure of (A,B) with respect to R(A,B,C,D,E,F,G)if R has the following functional dependencies? (a) GCDE AF BF - ABC FC G (b) D-AC-D A+B ABC 2 33 points for each of...

  • 1. (30 points: 15 each) INormalization: 4NFI Consider the relation SUPPLY below (right), mapped from the...

    1. (30 points: 15 each) INormalization: 4NFI Consider the relation SUPPLY below (right), mapped from the ternary relationship SUPPLY in the ER diagram below (left), and answer the questions below Sname Quantity ProiName SUPPLY SUPPLIER N PROJECT SUPPLY Sname ProjName PartNo Quantity Date Parte PART a) Show all functional dependencies and multivalued dependencies applied to the attributes in the SUPPLY relation. Use box notations like Figure 14.13 (note: single arrow head for functional dependency and double arrowhead for multivalued dependency)....

  • Language: SQL - Normalization and Functional Dependencies Part 4 Normalization and Functional Dependencies Consider the following relation R(A, B, C, D)and functional dependencies F that hold o...

    Language: SQL - Normalization and Functional Dependencies Part 4 Normalization and Functional Dependencies Consider the following relation R(A, B, C, D)and functional dependencies F that hold over this relation. F=D → C, A B,A-C Question 4.1 (3 Points) Determine all candidate keys of R Question 4.2 (4 Points) Compute the attribute cover of X-(C, B) according to F Question 43 (5 Points) Compute the canonical cover of F.Show each step of the generation according to the algorithm shown in class....

  • Dependency Very Good dependency (key dependency) : XA where Table Very good If all dependencies i...

    Dependency Very Good dependency (key dependency) : XA where Table Very good If all dependencies in a table are '"very good", the table is in BCNF X is a candidate key Good Good dependency: X-> A where If all dependencies in a table are "very good" or "good", the table is in 3NF X is not a candidate key X is a part of a candidate key A is prime attribute Bad Bad dependency (Transitive Dependency): X A where If...

  • Here's a relation (R), its attributes and its functional dependencies (F): R(A, B, C, D, E)...

    Here's a relation (R), its attributes and its functional dependencies (F): R(A, B, C, D, E) C D → B A → D D → C E → C What is the closure of AB ({AB}+)? What is the closure of F (F+)? [ set of closures for all LHS][each LHS on one line] What is the minimal set (cover) for F? Provide a key for relation R (a minimal set of attributes that can determine all attr.) Decompose the...

  • Consider a table Inventory with the following functional dependencies: cus_code, prod_id  cus_name,cus_address,prod_name,unit_cost, quantity cus_code ...

    Consider a table Inventory with the following functional dependencies: cus_code, prod_id  cus_name,cus_address,prod_name,unit_cost, quantity cus_code  cus_name, cus_address prod_id  prod_name,unit_cost. a) In what normal form is relation R? Explain why? b) Is it possible to decompose R into a number of relations in order to achieve a higher normal form? Show the tables that result from the decomposition.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT