1st and 2nd Normalization

How to perform 1st and 2nd normalization? Explain with example.

Questions by ShikhaBindaas

Showing Answers 1 - 6 of 6 Answers

1st Normalization specifies  if and only if all the attributes of the relation R are atomic in nature.
Ex: First (Empno, Prjno, Prjname, Noof Hours, Empname)
Empno: Employee number
Prjno: Project number
Prjname: Project name
NoofHours: Specifies that Employee has worked on each project
Empname: Employee name.
In the above ex, Imagine that employee has worked on mroe than one project. So you will have multiple values for prjno,prjname and Noofhours filelds. This will put in separate row for each column. So table is reduced to 1st Normal form.

2nd Normalization specifies that  table should be in
>1st normal form
>Every Non key column is fully dependent upon the primary key.
>Partial dependency should be eliminated.
So now you will have 3 tables:-
first_1(empno,prjno,noofhours) [Every Non key column is fully dependent upon the primary key]                            
first_2(empno,empname) [Partial dependency should be eliminated]
first_3(prjno,prjname) [Partial dependency should be eliminated]

Hope its clear.

  Was this answer useful?  Yes

For a relation to be in 1st NF the relation should contain atomic attributes
only that is they must be single-valued. If its not so break the composite
attribute into its parts and for multivalued duplicate the tuple with all its
multiple values.
For a relation to be in 2nd NF full functional dependency should exist rather
than partial dependency.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions