This document contains a homework assignment on database normalization with 7 parts. It provides a table, identifies functional dependencies, and asks the student to decompose the table into multiple tables in 1NF, 2NF and 3NF. It also asks the student to identify primary keys and foreign keys for the normalized tables.
1. Module/Week 5
Homework Assignment
Chapter 7 Homework
PART 1:
(1 point)
Given the following table, identify the functional dependencies:
StdSSN
StdCity
StdClass
OfferNo
OffTerm
OffYear
EnrGrade
CourseNo
CrsDesc
S1
SEATTLE
JUN
01
SPRING
2009
3.5
C1
DB
S1
SEATTLE
JUN
02
FALL
2009
3.3
C2
3. In the table provided below, fill in the following data such that
it is completely un-normalized.
That is, it is not even in 1NF.
222-33-44444
John Doe
Web Design, Database, Intro to MIS, C# Programming
555-66-7777
Jane Doe
Prin. Of Accounting, Auditing I, Statistical Analysis
SSN
StudentName
Courses
PART 3: (1 point)
Using your un-normalized table above, fill in the table below
with the data in 1NF.
SSN
StudentName
Courses
4. PART 4:
Given the following table and functional dependencies,
construct tables below that will satisfy 2NF and identify the
primary key of each new table. Note that the primary key of this
table is StdSSN + OfferNo.
StdSSN
StdCity
StdClass
OfferNo
OffTerm
OffYear
EnrGrade
CourseNo
CrsDesc
S1
SEATTLE
JUN
01
SPRING
2009
3.5
8. à
CrsDesc
What table above needs to be modified to accommodate this
new functional dependency?
_______________________________
PART 6:
(1/2 point)
Given this new functional dependency, create tables below that
will put this table in 3NF.
Table 4
Primary Key:
_______________________________
9. Table 5
Primary Key:
_______________________________
PART 7:
(1/2 point)
Identify any foreign keys in Table 4:
_______________________________
Module/Week 5
Homework Assignment
Chapter 7 Homework
PART 1:
(1 point)
Given the following table, identify the functional dependencies:
StdSSN
StdCity
StdClass
OfferNo
OffTerm
OffYear
EnrGrade
CourseNo
11. VB
PART 2: (1 point)
In the table provided below, fill in the following data such that
it is completely un-normalized.
That is, it is not even in 1NF.
222-33-44444
John Doe
Web Design, Database, Intro to MIS, C# Programming
555-66-7777
Jane Doe
Prin. Of Accounting, Auditing I, Statistical Analysis
SSN
StudentName
Courses
12. PART 3: (1 point)
Using your un-normalized table above, fill in the table below
with the data in 1NF.
SSN
StudentName
Courses
PART 4:
Given the following table and functional dependencies,
construct tables below that will satisfy 2NF and identify the
13. primary key of each new table. Note that the primary key of this
table is StdSSN + OfferNo.
StdSSN
StdCity
StdClass
OfferNo
OffTerm
OffYear
EnrGrade
CourseNo
CrsDesc
S1
SEATTLE
JUN
01
SPRING
2009
3.5
C1
DB
S1
SEATTLE
JUN
02
FALL
2009
3.3
C2
VB
S2
DENVER
JUN
03
SPRING
2010
3.1
16. Table 3
Primary Key:
_______________________________
PART 5:
(1/2 point)
Now, assume an additional functional dependency:
CourseNo
à
CrsDesc
What table above needs to be modified to accommodate this
new functional dependency?
_______________________________
PART 6:
(1/2 point)
Given this new functional dependency, create tables below that
will put this table in 3NF.
18. Module/Week 5
Homework Assignment
Chapter 7 Homework
PART 1:
(1 point)
Given the following table, identify the functional dependencies:
StdSSN
StdCity
StdClass
OfferNo
OffTerm
OffYear
EnrGrade
CourseNo
CrsDesc
S1
SEATTLE
JUN
01
SPRING
2009
3.5
C1
DB
S1
SEATTLE
JUN
02
FALL
2009
3.3
C2
20. In the table provided below, fill in the following data such that
it is completely un-normalized.
That is, it is not even in 1NF.
222-33-44444
John Doe
Web Design, Database, Intro to MIS, C# Programming
555-66-7777
Jane Doe
Prin. Of Accounting, Auditing I, Statistical Analysis
SSN
StudentName
Courses
PART 3: (1 point)
Using your un-normalized table above, fill in the table below
with the data in 1NF.
SSN
StudentName
Courses
21. PART 4:
Given the following table and functional dependencies,
construct tables below that will satisfy 2NF and identify the
primary key of each new table. Note that the primary key of this
table is StdSSN + OfferNo.
StdSSN
StdCity
StdClass
OfferNo
OffTerm
OffYear
EnrGrade
CourseNo
CrsDesc
S1
SEATTLE
JUN
01
SPRING
2009
3.5
25. à
CrsDesc
What table above needs to be modified to accommodate this
new functional dependency?
_______________________________
PART 6:
(1/2 point)
Given this new functional dependency, create tables below that
will put this table in 3NF.
Table 4
Primary Key:
_______________________________
26. Table 5
Primary Key:
_______________________________
PART 7:
(1/2 point)
Identify any foreign keys in Table 4:
_______________________________
Module/Week 5
Homework Assignment
Chapter 7 Homework
PART 1:
(1 point)
Given the following table, identify the functional dependencies:
StdSSN
StdCity
StdClass
OfferNo
OffTerm
OffYear
EnrGrade
CourseNo
28. VB
PART 2: (1 point)
In the table provided below, fill in the following data such that
it is completely un-normalized.
That is, it is not even in 1NF.
222-33-44444
John Doe
Web Design, Database, Intro to MIS, C# Programming
555-66-7777
Jane Doe
Prin. Of Accounting, Auditing I, Statistical Analysis
SSN
StudentName
Courses
29. PART 3: (1 point)
Using your un-normalized table above, fill in the table below
with the data in 1NF.
SSN
StudentName
Courses
PART 4:
Given the following table and functional dependencies,
construct tables below that will satisfy 2NF and identify the
30. primary key of each new table. Note that the primary key of this
table is StdSSN + OfferNo.
StdSSN
StdCity
StdClass
OfferNo
OffTerm
OffYear
EnrGrade
CourseNo
CrsDesc
S1
SEATTLE
JUN
01
SPRING
2009
3.5
C1
DB
S1
SEATTLE
JUN
02
FALL
2009
3.3
C2
VB
S2
DENVER
JUN
03
SPRING
2010
3.1
33. Table 3
Primary Key:
_______________________________
PART 5:
(1/2 point)
Now, assume an additional functional dependency:
CourseNo
à
CrsDesc
What table above needs to be modified to accommodate this
new functional dependency?
_______________________________
PART 6:
(1/2 point)
Given this new functional dependency, create tables below that
will put this table in 3NF.