You are on page 1of 2

Student Name,Address, Course, Enrolment Year, Mobile, Father's Name, School Name , Branch, Percentage, Age, DOB 1st

Normal Form -- Domain of all attributes should be atomic -- Remove data redundancy (Column Level) -- Assign Key -- Types of Keys ------ Super Key===> represents all the attributes ------ Candidate Key ------ Primary Key===> unique and should not have null value ------ Alternate Key ------ Foreign Key 2nd Normal Form -- Data Should be in 1NF -- Remove Functional dependencies (Row Level Redundancy). -- Remove Attributes Not Fully dependant on Primary Key (Partial Depandancy. It will occur only in the case of composite Primary Key ). -- Assign Keys (Foreign Key) 3rd Normal Form -- Data Should be in 2NF -- Remove Transitive dependencies -- Assign keys (Foreign Key) ---- Referential Integrity ---- Data Independence Explaination -------------Student name---> Non atomic data cos it can be broken into more ATTRIBUTES namel y 1st name,middle name and last name Address---> street address, City, State So basically its like 1NF ----Student FName, MName, LName, Street Address,City, State, Course, Enrolment Year, Mobile, Father's FName, MName, LName, School Name, Branch, Percentage, Age, DOB ===>ATOMICITY DOMAIN Student FName, MName, Street Address,City, State, Course, Enrolment Year, Mobile , Father's FName, MName, LName, School Name, Branch, Percentage, Age, DOB===>RED UNDANCY DOMAIN (here father's fname is same as student's last name) Then assign a key..first the super key. SFName, FFName===>candidate key Mobile, Address===>candidate key SFName, Address===>candidate key

From super key u get candidate keys(combination of attributes..in the above exam ple there are 3)...from that u get a primary key...and the other keys are called alternate keys...if primary key can be got from the candidate keys then v intro duce our OWN attribute called Surrogate key which acts as the primary key. R#,Student FName, MName, Street Address,City, State, Course, Enrolment Year, Mob ile, Father's FName, MName, LName, School Name, Branch, Percentage, Age, DOB(her e r# is the surrogate key) 2NF ---R#,Student FName, MName, Street Address,City, State, Course, Enrolment Year, Mob ile, Father's FName, MName, LName, School Name, Branch, Percentage, DOB -- Remov e FD's (sysdate, DOB==> age) STUDENTS R#,Student FName, MName, Street Address,City, State,Enrolment Year, Mobile, Fath er's FName, MName, LName, School Name, Percentage, DOB-- Here v remove COURSE an d BRANCH bcos they r not directly dependant on the R#. COURSES===> Same couse gan be done by more than 1 student. C#,Course BRANCH===> Same course can be taught to different branches. Branch EXAMINATIONS Exams R#,Student FName, MName, Street Address,City, State,Enrolment Year, Mobile, Fath er's FName, MName, LName, School Name, Percentage, DOB, C# -- Foreign Key 3NF ----

You might also like