Normalisation

Preview:

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.

Recommended