Normalization in DB2 – first normal form, second normal form

Answers were Sorted based on User's Feedback



Normalization in DB2 – first normal form, second normal form ..

Answer / mohan.s

Second normal form (2NF) If a table has a composite key,
all attributes must be related to the whole key:

• The database must meet all the requirements of the
first normal form.

• The relational schema should not have any partial
functional dependency i.e. No proper subset of the primary
key should derive a functional dependency belonging to the
same schema. For example, consider functional dependencies
FD:{AB->C, A->D, C->D} here AB is the primary key, as A->D
this relational schema is not in 2NF.

Is This Answer Correct ?    7 Yes 1 No

Normalization in DB2 – first normal form, second normal form ..

Answer / mohan.s

First normal form (1NF) lays the groundwork for an
organised database design:

• Ensure that each table has a primary key: minimal
set of attributes which can uniquely identify a record.

• Eliminate repeating groups (categories of data
which would seem to be required a different number of times
on different records) by defining keyed and non-keyed
attributes appropriately.

• Atomicity: Each attribute must contain a single
value, not a set of values.

• 'First normal form' depends on functional
dependency formula f(x)=y. For every value of x there is
value for y.

Is This Answer Correct ?    7 Yes 3 No

Normalization in DB2 – first normal form, second normal form ..

Answer / mohan.s

The formal classifications describing the level of database
normalization in a data model are called Normal Forms (NF)
and the process of doing this is Normalization.

Is This Answer Correct ?    8 Yes 6 No

Normalization in DB2 – first normal form, second normal form ..

Answer / mohan.s

Third normal form (3NF) requires that data stored in a
table be dependent only on the primary key, and not on any
other field in the table.

• The database must meet all the requirements of the
first and second normal form.

• All fields must be directly dependent on the
primary key field. Any field which is dependent on a non-
key field which is in turn dependent on the Primary Key (ie
a transitive dependency) is moved out to a separate
database table.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More DB2 Interview Questions

What is table space in db2?

0 Answers  


What is the reason behind not using select * in embedded sql programs?

0 Answers  


What are the disadvantages of PAGE level lock?

3 Answers  


If the main program has only cobol statements and subprogram has the db2 statements what is the procedure for precompilation. for which program we need to do the precompilation

1 Answers   IBM,


Is it possible using max on a char column?

0 Answers  






Q1. How will you use two different DB2 qualifiers in a single COBOL program? Suppose we have 2 tables EMP1 and EMP2 with same structure defined in two different DB2 qualifiers QUAL1.EMP1 and QUAL2.EMP2 now during first 15 days we want to use QUAL1.EMP1 and rest of the days QUAL2.EMP2  how will we do this.  We can create a single program and a single load for this program. 

2 Answers   RBS,


what is the use of bind parameter, Replace?

5 Answers   IBM,


How are write I/Os from the buffer pool executed?

1 Answers  


WHAT IS MEANT BY COMMIT COMMAND?

7 Answers   Wipro,


What is the function of logging in the db2 database?

0 Answers  


What is a LIKE table and how is it created?

2 Answers  


When is the skeleton cursor table created?

1 Answers  


Categories