2
ELEMENTS OF NORMALISATION UNF (un-normalized form) All the attribute relatin! to the databae to be "reated are all lited in order and from that #e "an determine the $rimar% &e%' At thi ta!e it i in un-normalized form' The $rimar% &e% i the I number' The attribute in"lude I number* +rt name* lat name* !ender* fee* ma,or "ode* ma,or name* "oure name* "oure "ode* number of "redit* and %ear of !raduation' NF (+rt normal form) The +rt normalization i able to allo# for e$aration of re$eatin! and non-re$eatin attribute' Thi i determined b% our $rimar% &e% #hi"h i the I number' The non- re$eatin! attribute are +rt name* lat name* !ender* fee* and %ear of !raduation' The re$eatin! attribute are ma,or "ode* ma,or name* "oure name* "oure "ode* and number of "redit' .NF (e"ond normal form) The e"ond normalization allo# for normalization of attribute a""ordin! to the de$enden"ie full or $artial de$enden"ie in relation to the $rimar% and forei!n &e Attribute u"h a +rt name* lat name* !ender and fee are full% de$endent on the $rimar% &e% and are thu e$arated from the ret' Attribute u"h a the ma,or name* "oure "ode* "oure name* "oure ad/ior* number of "redit and %ear of !raduation are related to the ma,or "ode a the $rimar% &e% and $artiall% related to the forei!n &e% #hi"h i the I number' 0NF (third normal form) The third normalization allo# for the attribute to be e$arated further a""ordin! their traniti/e de$enden"ie' The $rimar% &e% in thi "ae are I number* "oure "ode and ma,or "ode' Attribute that fall under the I number are +rt name* lat name* !ender* and fee' Attribute under the "oure "ode are "oure name* number of "redit and %ear of !raduation' Latl%* the attribute under ma,or "ode are ma,or name and "oure ad/ior'

Normalisation

Embed Size (px)

DESCRIPTION

How to Normalize to 3UNF

Citation preview

ELEMENTS OF NORMALISATIONUNF (un-normalized form)All the attributes relating to the database to be created are all listed in order and from that we can determine the primary keys. At this stage it is in un-normalized form. The primary key is the ID number. The attributes include; ID number, first name, last name, gender, fees, major code, major name, course name, course code, number of credits, and year of graduation.1NF (first normal form)The first normalization is able to allow for separation of repeating and non-repeating attributes. This is determined by our primary key which is the ID number. The non-repeating attributes are first name, last name, gender, fees, and year of graduation. The repeating attributes are major code, major name, course name, course code, and number of credits.2NF (second normal form)The second normalization allows for normalization of attributes according to the dependencies; full or partial dependencies in relation to the primary and foreign key. Attributes such as first name, last name, gender and fees are fully dependent on the primary key and are thus separated from the rest. Attributes such as the major name, course code, course name, course advisor, number of credits and year of graduation are related to the major code as the primary key and partially related to the foreign key which is the ID number.3NF (third normal form)The third normalization allows for the attributes to be separated further according to their transitive dependencies. The primary keys in this case are ID number, course code and major code. Attributes that fall under the ID number are first name, last name, gender, and fees. Attributes under the course code are course name, number of credits and year of graduation. Lastly, the attributes under major code are major name and course advisor.