PART 1:
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
|
VB
|
S2
|
DENVER
|
JUN
|
03
|
SPRING
|
2010
|
3.1
|
C3
|
OO
|
S2
|
DENVER
|
JUN
|
02
|
FALL
|
2009
|
3.4
|
C2
|
VB
|
StdSSN - StdCity, StdClass
OfferNo - OffTerm, OffYear, CourseNo, CrsDesc
CourseNo - CrsDesc
StdSSN, OfferNo - EnrGrad
PART 2:
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
|
222-33-44444
|
Jane Doe
|
Web Design Database Intro to Mis C# Programming
|
555-666-7777
|
John Doe
|
Prin. OF Accounting Auditing I Statistical Analysis
|
PART 3:
Using your un-normalized table above, fill in the table below with the data in 1NF.
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
|
C1
|
DB
|
S1
|
SEATTLE
|
JUN
|
02
|
FALL
|
2009
|
3.3
|
C2
|
VB
|
S2
|
DENVER
|
JUN
|
03
|
SPRING
|
2010
|
3.1
|
C3
|
OO
|
S2
|
DENVER
|
JUN
|
02
|
FALL
|
2009
|
3.4
|
C2
|
VB
|
Functional dependencies:
StdSSN → StdCity, StdClass
OfferNo → OffTerm, OffYear, CourseNo, CrsDesc
StdSSN, OfferNo → EnrGrade
PART 5:
Now, assume an additional functional dependency:
CourseNo → CrsDesc
What table above needs to be modified to accommodate this new functional dependency?
PART 6:
Given this new functional dependency, create tables below that will put this table in 3NF.
PART 7:
Identify any foreign keys in Table of part 6.
Attachment:- erd1.erd