Sie sind auf Seite 1von 2

Exercises for Database

Normalization

Q6. Explain the purpose of data normalization and describe the main steps in the normalization process.

The process of organizing data so that it avoids data inconsistency prevents update anomalies. The main steps
include: 1NF to remove repeating groups; 2NF to remove partial dependencies; 3NF to remove transitive
dependencies and BCNF to remove remaining anomalies from dependencies.

The table shown below displays the details of the roles played by actors/actresses in films.

filmNo fTitle dirNo director actorNo aName role timeOnScreen

F1100 Happy Days D101 Jim Alan A1020 Sheila Toner Jean Simson 15.45

D101 Jim Alan A1222 Peter Watt Tom Kinder 25.38

D101 Jim Alan A1020 Sheila Toner Silvia Simpson 22.56

F1109 Snake Bite D076 Sue Ramsay A1567 Steven McDonald Tim Rosey 19.56

D076 Sue Ramsay A1222 Peter Watt Archie Bold 10.44

(a) Describe why the table shown below is not in first normal form (1NF).
-

(b) The table shown above is susceptible to update anomalies. Provide examples of how insertion,
deletion, and modification anomalies could occur on this table.
-
(c) Identify the functional dependencies represented by the table shown above. State any assumptions
you make about the data shown in this table (if necessary).

(a) Using the functional dependencies identified in part (c), describe and illustrate the process of
normalization by converting the table shown in Figure 1 to Boyce–Codd Normal Form (BCNF).
Identify the primary and foreign keys in your BCNF relations.

(f) Sketch an Entity–Relationship model for the data shown in table above.

1
Q7 The table below lists customer/car hire data. Each customer may hire cars from various outlets
throughout Glasgow. A car is registered at a particular outlet and can be hired out to a customer on
a given date.

carReg make model custNo custName hireDate outletNo outletLoc

M565 0GD Ford Escort C100 Smith, J 14/5/98 01 Bearsden

M565 0GD Ford Escort C201 Hen, P 15/5/98 01 Bearsden

N734 TPR Nissan Sunny C100 Smith, J 16/5/98 01 Bearsden

M134 BRP Ford Escort C313 Blatt, O 14/5/98 02 Kelvinbridge

M134 BRP Ford Escort C100 Smith, J 20/5/98 02 Kelvinbridge

M611 0PQ Nissan Sunny C295 Pen, T 20/5/98 02 Kelvinbridge

(a) The data in the table is susceptible to update anomalies. Provide examples of how insertion, deletion,
and modification anomalies could occur on this table.

(b) Identify the functional dependencies represented by the data shown in the table. State any assumptions
you make about the data.

(c) Using the functional dependencies identified in part (b), describe and illustrate the process of
normalization by converting Table 1 to Third Normal Form (3NF) relations. Identify the primary and
foreign keys in your 3NF relations.

(d) Sketch an Entity–Relationship model for the data shown in Table 1. Show all the entities, relationships, and
attributes.

Das könnte Ihnen auch gefallen