Вы находитесь на странице: 1из 14

UNF

Details Table
Student ID Primary Key
Student Name
Date Of Birth
Course ID
Course Name
Course Level
Course Duration
Course Completion Date
Result Composite Primary Key
1NF

Student Table
Student ID Primary Key
Student Name
Date Of Birth

Course Table

Course ID Primary Key


Student ID
Course Name
Course Level
Course Duration
Course Completion Date
Result

Composite Primary Key


2NF

Student Table
Student ID Primary Key
Student Name
Date Of Birth

Course Table

Course ID Primary Key


Course Name
Course Level Foreign Key
Course Duration

Course Details Table

Course ID Primary Key


Student ID
Course Completion Date
Result

Composite Primary Key


3NF

Student Table
Student ID
Student Name
Date Of Birth

Course Table

Course ID
Course Name
Course Level

Course Level Table

Course Level
Course Duration

Course Details Table

Course ID
Student ID
Course Completion Date
Result
UNF
Student ID Student Name Date Of Birth Course ID Course Name
1 Rahul 10/2/1987 101 French
201 Spanish
301 Italian
101 French
201 Spanish
301 Italian
2 Sam 9/7/1986 101 French
201 Spanish
301 Italian
3 Sameer 3/4/1990 101 French
201 Spanish
301 Italian
Course Level Course Duration Course Passing Date Result
1 3 months 10/2/2007 Passed
1 3 months 10/1/2007 Passed
1 3 months 10/3/2007 Passed
2 6 months 10/2/2008 Passed
2 6 months 10/1/2008 Passed
2 6 months 10/3/2008 Passed
3 12 months 7/9/2009 Passed
3 12 months 7/10/2009 Failed
3 12 months 7/9/2009 Passed
2 6 months 10/2/2007 Failed
1 3 months 10/1/2007 Passed
1 3 months 10/3/2007 Passed
1NF
Student Table
Primary Key
Student ID Student Name Date Of Birth
1 Rahul 10/2/1987
2 Sam 9/7/1986
3 Sameer 3/4/1990

Course Table

Composite Primary Key


Course ID Student ID Course Name Course Level
101 1 French 1
101 2 French 3
101 3 French 2
201 1 Spanish 1
201 2 Spanish 3
201 3 Spanish 1
Course Duration Course Completion Date Result
3 months 10/2/2007 Passed
12 months 7/9/2009 Passed
6 months 10/2/2007 Failed
3 months 10/2/2007 Passed
12 months 7/9/2009 Failed
3 months 10/2/2007 Passed
2NF

Student Table
Primary Key
Student ID Student Name
1 Rahul
2 Sam
3 Sameer

Course Table
Primary Key
Course ID Course Name
101 French

201 Spanish

Course Details

Composite Primary Key


Course ID Student ID
101 1
101 2
101 3
201 1
201 2
201 3
Date Of Birth
10/2/1987
9/7/1986
3/4/1990

Course Level Course Duration


1 3 months
2 12 months
3 6 months
1 3 months
2 12 months
3 3 months

Course Completion Date Result


10/2/2007 Passed
7/9/2009 Passed
10/2/2007 Failed
10/2/2007 Passed
7/9/2009 Failed
10/2/2007 Passed
3NF

Student Table
Primary Key
Student ID Student Name Date Of Birth
1 Rahul 10/2/1987
2 Sam 9/7/1986
3 Sameer 3/4/1990

Course Table

Primary Key Foreign Key


Course ID Course Name Course Level
101 French 1
2
3
201 Spanish 1
2
3

Course Level Table


Primary Key
Course Level Course Duration
1 3 months
2 6 months
3 12 months

Course Details

Composite Primary Key


Course ID Student ID Course Completion Date
101 1 10/2/2007
101 2 7/9/2009
101 3 10/2/2007
201 1 10/2/2007
201 2 7/9/2009
201 3 10/2/2007
Result
Passed
Passed
Failed
Passed
Failed
Passed

Вам также может понравиться