Professional Documents
Culture Documents
Normalization Notes By Afroz sir.
Normalization Notes By Afroz sir.
[By Afroz]
What Is Normalization ??
Normalization Is The Process Of Decomposing / Breaking Down A Larger Table To Smaller
Tables.
Or
Narmalization Is The Process Of Storing The Data In Multiple Tables By Decomposing A
Larger Table In The Database.
Or
Normalization Is The Process Of Making A Table To Obey Total Function Dependency.
Here,
Therefore Here We Can Declare That Dname & Loc Is Functionally Dependent Upon Dno.
Note:- In Order To Identify What Type Of Dependency Exists In The Table , Then We Must
Know Which Type Of Attribute Is Dependent On Which Type Of Attribute.
Example:-
2) Nonkey Attribute :- In A Relation Other Than The Key Attribute All The Remaing
Attributes Are Considered As Nonkey Attributes.
Example:-
{Student} [Sid , Sname , Pannumber , Dob , Phone No , Mail Id , Adress , Gender , Blood
Group , Adhaar Number , Age , Percentage , Yop , Qualification , Stream , Univercity Name ,
Instgram Id , Voter Id , Caste , Nationality , Marital Status , Dl Num , Banck Account Number
, Hobbies]
In The Above Student Attributes Collection ,
Exampl 2:-
{Student} [Sid , Sname , Pannumber , Dob , Phone No , Mail Id , Adress , Gender , Blood
Group , Adhaar Number , Age , Percentage , Yop , Qualification , Stream , Univercity Name ,
Instgram Id , Voter Id , Caste , Nationality , Marital Status , Dl Num , Banck Account Number
, Hobbies]
In The Above Student Attributes Collection Let Us Consider ‘Dob , Adress’ Are Togther
Is A Primay Key Of The Table , Then I Can Declare That ‘Dob’ Is A Prime Key Attribute
Or ‘Adress’ Is A Prime Key Attribute Or ‘Dob , Adress’ Is Prime Key Attribute.
4) Non-Primekey Attribute :- In A Relation Other Than Prime Key Attribute Remaing All
The Other Attributes Are Considered As Non-Prime Key Attributes
Exampl 1:-
{Student} [Sid , Sname , Pannumber , Dob , Phone No , Mail Id , Adress , Gender , Blood
Group , Adhaar Number , Age , Percentage , Yop , Qualification , Stream , Univercity Name ,
Instgram Id , Voter Id , Caste , Nationality , Marital Status , Dl Num , Banck Account Number
, Hobbies]
In The Above Student Attributes Collection Let Us Consider ‘Sid’ Is A Primay Key Of
The Table , Then I Can Declare That Sid Is A Prime Key Attribute.
[Sname , Pan No , Dob , Phone No , Mail Id , Address , Gender , Blood Group ,Adhaar
No , Age , Percentage , Yop , Qualification , Stream , University Name , Instgram Id ,
Voter Id , Caste , Nationality , Marital Status , Dl Num , Banck Account Number ,
Hobbies]
Exampl 2:-
{Student} [Sid , Sname , Pannumber , Dob , Phone No , Mail Id , Adress , Gender , Blood
Group , Adhaar Number , Age , Percentage , Yop , Qualification , Stream , Univercity Name ,
Instgram Id , Voter Id , Caste , Nationality , Marital Status , Dl Num , Banck Account Number
, Hobbies]
In The Above Student Attributes Collection Let Us Consider ‘Dob , Adress’ Are Togther
Is A Primay Key Of The Table , Then I Can Declare That ‘Dob’ Is A Prime Key Attribute
Or ‘Adress’ Is A Prime Key Attribute Or ‘Dob , Adress’ Is Prime Key Attribute.
Example:-
{Student} [Sid , Sname , Pannumber , Dob , Phone No , Mail Id , Adress , Gender , Blood
Group , Adhaar Number , Age , Percentage , Yop , Qualification , Stream , Univercity Name ,
Instgram Id , Voter Id , Caste , Nationality , Marital Status , Dl Num , Banck Account Number
, Hobbies]
Below From The Realtion Only Collected The Set Of All The Key Attrutes As A Super
Key Collectively.
7) Foreign Key Attribute:- In A Realtion If There Exist A Foreign Key Reference Then
Those Attributes Which Is A Part Of That Foreign Key Reference That Attribute Is Known
As Foreign Key Attribute.
Example 1:-
{Student} [Sid , Sname , Pannumber , Dob , Phone No , Mail Id , Adress , Gender , Blood
Group , Adhaar Number , Age , Percentage , Yop , Qualification , Stream , Univercity Name ,
Instgram Id , Voter Id , Caste , Nationality , Marital Status , Dl Num , Banck Account Number
, Hobbies, Student_Mock_Id]
In The Above Attributes Collection Let Us Consider ‘Student_Mock_Id’ Is A Foreign Key In
Student Table, Then In Student Table ‘Student_Mock_Id’ Is A Foreign Key Attribute.
Example 2:-
{Student} [Sid , Sname , Pannumber , Dob , Phone No , Mail Id , Adress , Gender , Blood
Group , Adhaar Number , Age , Percentage , Yop , Qualification , Stream , Univercity Name ,
Instgram Id , Voter Id , Caste , Nationality , Marital Status , Dl Num , Banck Account Number
, Hobbies],Cid,Subject_Id]
In The Above Attributes Collection Let Us Consider ‘Cid , Subject_Id’ Are Togerther Foreign
Key In Student Table, Then In Student Table ‘Cid’ Is A Foreign Key Attribute Or Subject_Id
Is Also A Foreign Key Attribute Or ‘Cid , Subject_Id’ Is Also A Foreign Key Attribute.