Normalization Assignment
Normalization Assignment
Normalization is the process used to organize a database into tables and columns. A table should
be about a specific topic and that only those columns, which support that topic, are included. By,
limiting a table to one purpose you reduce that number of duplicate data, which helps eliminate
some issues stemming from database modifications
When is a table in 1NF?
A table is in 1NF when all the key attributes are defined and when all remaining attributes are
dependent on the primary key.
When is a table in 2NF?
A table is in 2NF when it is in 1NF and it includes no partial dependencies.
When is a table in 3NF?
A table is in 3NF when it is in 2NF and it contains no transitive dependencies.
When is a table in BCNF?
A table is in BCNF when it is in 3NF and every determinant in the table is a candidate key.
Given the dependency diagram shown in Figure Q5.6, answer items 6a-6c:
a. Identify and discuss each of the indicated dependencies.
C1 C2 represents a partial dependency, because C2 depends only on C1, rather than on
the entire primary key composed of C1 and C3.
C4 C5 represents a transitive dependency, because C5 depends on an attribute (C4)
that is not part of a primary key.
C1, C3 C2, C4, C5 represents a set of proper functional dependencies, because C2,
C4, and C5 depend on the primary key composed of C1 and C3.
attribute.
Suppose that someone tells you that an attribute that is part of a composite primary key is
also a candidate key. How would you respond to that statement?
This argument is incorrect if the composite PK contains no redundant attributes. If the composite
primary key is properly defined, all of the attributes that compose it are required to identify the
remaining attribute values. A candidate key is can be used to identify all of the remaining
attributes, but it was not chosen to be a PK for some reason.
A table is in ___ normal form when it is in ____ and there are no transitive dependencies.
3rd, 2nd normal form.
b.
The relational schemas are written as follows:
EMPLOYEE( EMP_CODE, EMP_LNAME, EMP_FNAME, EMP_INITIAL)
BUILDING (BLDG_CODE, BLDG_NAME, EMP_CODE)
ITEM (ITEM_ID, ITEM_DESCRIPTION, ITEM_ROOM, BLDG_CODE)
c.