0% found this document useful (0 votes)
51 views18 pages

Normal Forms by Sriman Sir

The document discusses database normalization forms. It provides examples of student, course, and faculty data in raw and normalized formats according to 1st, 2nd, and 3rd normal form rules. The examples show how the data is organized into tables and relationships between tables to eliminate data redundancy and anomalies.

Uploaded by

vishal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views18 pages

Normal Forms by Sriman Sir

The document discusses database normalization forms. It provides examples of student, course, and faculty data in raw and normalized formats according to 1st, 2nd, and 3rd normal form rules. The examples show how the data is organized into tables and relationships between tables to eliminate data redundancy and anomalies.

Uploaded by

vishal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 18

STUDENT_NO STUDENT_NM QUALIFICATION GENDER CONTACT_NO

COURSE_NO COURSE_NM DURATION FEE FACULTY_ID FACULTY_NM


EXPERIENCE
1 Normal Form Rules

1) No repeating groups of data


2) Every table must have primary key
3) All the data must be atomic in nature
data
rimary key
omic in nature
STUDENT_NO STUDENT_NM QUALIFICATION GENDER
s1 john m btech male

STUDENT_NO FIRST_NM LAST_NM QUALIFICATION


s1 john m btech

STUDENT_NO COURSE_NO COURSE_NM DURATION


s1 c1 core java 6
s1 c2 hibernate 3
CONTACT_NO COURSE_NO COURSE_NM DURATION
337394844 c1 core java 6

GENDER CONTACT_NO
male 337394844

FEE FACULTY_ID FACULTY_FIRST_NM FACULTY_LAST_NM


500 f1 subbarao m
1500 f2 rakesh k
FEE FACULTY_ID FACULTY_NM EXPERIENCE COURSE
500 f1 subbrao k 10 c2

EXPERIENCE
10
6
COURSE_NM DURATION FEE FACULTY_ID FACULTY_NM
hibernate 3 1500 f2 rakesh k
EXPERIENCE
6
2nd Normal Form

1) The tables must be in 1st Normal Form


2) All the non-key attributes must be dependent o
3) Table should have primary key

STUDENT_NO FIRST_NM LAST_NM QUALIFICATION GENDER


s1 john m btech male

STUDENT_NO COURSE_NO
s1 c1
s1 c2
s2 C1

COURSE_NO COURSE_NM DURATION FEE FACULTY


c1 core java 6 500 f1
c2 hibernate 3 1500 f2
Normal Form
must be dependent on all the parts of the key
key

CONTACT_NO
337394844

FACULTY_FIRSFACULTY_LAST_NM EXPERIENCE
subbarao m 10
rakesh k 6
3 Normal Form

1) Data Model should be in 2nd Normal Fo


2) All the non-key attributes should not
3) Every table should have primary key

STUDENT_NO FIRST_NM LAST_NM


s1 john m

STUDENT_NO COURSE_NO
s1 c1
s1 c2
s2 C1

COURSE_NO COURSE_NM DURATION


c1 core java 6
c2 hibernate 3

FACULTY_ID FACULTY_FIRST_NM FACULTY_LAST_NM


f1 subbarao m
f2 rakesh k
l should be in 2nd Normal Form
on-key attributes should not be dependent on other non-key attributes
le should have primary key

QUALIFICATION GENDER CONTACT_NO


btech male 337394844

FEE FACULTY_ID
500 f1
1500 f2

EXPERIENCE
10
6
r non-key attributes
RAW DATA 1 NORMAL FORM
pk STUDENT_NO STUDENT
STUDENT_NM pk STUDENT_NO
QUALIFICATION STUDENT_NM
CONTACT_NO QUALIFICATION
EMAIL CONTACT_NO
GENDER EMAIL
COURSE_NO GENDER
COURSE_NM
DURATION COURSE_FACULTY
FEE pk STUDENT_NO
FACULTY_ID pk COURSE_NO
FACULTY_NM COURSE_NM
EXPERIENCE DURATION
FEE
FACULTY_ID
FACULTY_NM
EXPERIENCE
2 NORMAL FORM 3 NORMAL FORM
STUDENT STUDENT
pk STUDENT_NO pk STUDENT_NO
STUDENT_NM STUDENT_NM
QUALIFICATION QUALIFICATION
CONTACT_NO CONTACT_NO
EMAIL EMAIL
GENDER GENDER

STUDENT_COURSE STUDENT_COURSE
pk STUDENT_NO pk STUDENT_NO
pk COURSE_NO pk COURSE_NO

COURSE COURSE
pk COURSE_NO pk COURSE_NO
COURSE_NM COURSE_NM
DURATION DURATION
FEE FEE
FACULTY_ID FACULTY_ID
FACULTY_NM
EXPERIENCE FACULTY
pk FACULTY_ID
FACULTY_FIRST_NM
FACULTY_LAST_NM
EXPERIENCE

You might also like