Normal Form · Databases
35 questions · asked in 24 of 27 years (2000–2026)
MCQ 31 · MSQ 41-mark 22 · 2-mark 13
2000Questions per year2026
Questions 26–30 of 35
A table has fields with the following functional dependencies
In terms of Normalization, this table is in
In terms of Normalization, this table is in
Answer: (A)
Find the key. and appear on no right side, so both are in every key. : , and give all of . Neither nor alone determines everything (, ). So the only key is .
and are partial dependencies: a part of the key decides a non-key attribute. So the table is not in 2NF. Values are atomic, so it is in 1NF.
Answer: (A)
and are partial dependencies: a part of the key decides a non-key attribute. So the table is not in 2NF. Values are atomic, so it is in 1NF.
Answer: (A)
Which one of the following statements about normal forms is FALSE?
Answer: (C)
Option (C) is the FALSE statement.
A lossless decomposition into can always be done. But a decomposition that is both lossless and dependency preserving cannot always be done. For example, with and cannot be split into BCNF relations without losing . Such a decomposition is always possible for
Option (A) is true. A relation in is always in . In fact, allows an FD whose left side is not a superkey when the right side is prime, while does not.
Option (D) is true. Take the two attributes as and There are three cases:
1. Only one of or holds. No other non-trivial FD is possible. The left side of every FD is a superkey, so the rule is met.
2. Both and hold. Both and are keys, so the rule is met as above.
3. Neither holds, so is the key. No non-trivial FD is possible, so the rule is met.
So any relation with attributes is in Option (B) is true, since the 3NF synthesis algorithm gives a lossless, dependency-preserving decomposition.
Answer: (C)
A lossless decomposition into can always be done. But a decomposition that is both lossless and dependency preserving cannot always be done. For example, with and cannot be split into BCNF relations without losing . Such a decomposition is always possible for
Option (A) is true. A relation in is always in . In fact, allows an FD whose left side is not a superkey when the right side is prime, while does not.
Option (D) is true. Take the two attributes as and There are three cases:
1. Only one of or holds. No other non-trivial FD is possible. The left side of every FD is a superkey, so the rule is met.
2. Both and hold. Both and are keys, so the rule is met as above.
3. Neither holds, so is the key. No non-trivial FD is possible, so the rule is met.
So any relation with attributes is in Option (B) is true, since the 3NF synthesis algorithm gives a lossless, dependency-preserving decomposition.
Answer: (C)
A relation Empdtl is defined with attributes empcode (unique), name, street, city, state and pincode. For any pincode, there is only one city and state. Also, for any given street, city and state, there is just one pincode. In normalization terms, Empdtl is a relation in
Answer: (B)
The relation is in , but it is not in .
To be in , every non prime attribute must be fully functionally dependent on the key. The key here is empcode, and it has only one attribute. So there is no partial dependency.
But there is a transitive dependency (pincode -> city, state). So the relation is not in .
Answer:
To be in , every non prime attribute must be fully functionally dependent on the key. The key here is empcode, and it has only one attribute. So there is no partial dependency.
But there is a transitive dependency (pincode -> city, state). So the relation is not in .
Answer:
Consider the following entity relationship diagram (ERD), where two entities E1 and E2 have a relation R of cardinality 1:m.
The attributes of E1 are A11, A12 and A13 where A11 is the key attribute. The attributes of E2 are A21, A22 and A23 where A21 is the key attribute and A23 is a multi-valued attribute. Relation R does not have any attribute. A relational database containing minimum number of tables with each table satisfying the requirements of the third normal form (3NF) is designed from the above ERD. The number of tables in the database is
The attributes of E1 are A11, A12 and A13 where A11 is the key attribute. The attributes of E2 are A21, A22 and A23 where A21 is the key attribute and A23 is a multi-valued attribute. Relation R does not have any attribute. A relational database containing minimum number of tables with each table satisfying the requirements of the third normal form (3NF) is designed from the above ERD. The number of tables in the database is
Answer: (B)
Map the ER diagram to tables. E1 and E2 are in a 1:m relation, so the key of E1 goes into E2 as a foreign key, and R needs no table of its own. A multi-valued attribute cannot sit in a table with the key, since it would repeat rows.
One table per entity gives:
T1:
T2:
is multi-valued. If we keep it in T2, we must repeat rows for its many values, so the key of T2 becomes . This gives a partial FD , so T2 is not in . To fix this, we make a separate table for the multi-valued attribute. Then we get:
T1: , key
T2: , key ( is the foreign key)
T3: , key
Here the determinant of every FD is a key, so all the relations are in , and so in . We cannot use fewer tables without NULL entries or repeated data, so we need tables.
Answer: (B)
One table per entity gives:
T1:
T2:
is multi-valued. If we keep it in T2, we must repeat rows for its many values, so the key of T2 becomes . This gives a partial FD , so T2 is not in . To fix this, we make a separate table for the multi-valued attribute. Then we get:
T1: , key
T2: , key ( is the foreign key)
T3: , key
Here the determinant of every FD is a key, so all the relations are in , and so in . We cannot use fewer tables without NULL entries or repeated data, so we need tables.
Answer: (B)
The relation scheme Student Performance (name, courseNo, rollNo, grade) has the following functional dependencies:
name, courseNo, grade
rollNo, courseNo grade
name rollNo
rollNo name
The highest normal form of this relation scheme is
name, courseNo, grade
rollNo, courseNo grade
name rollNo
rollNo name
The highest normal form of this relation scheme is
Answer: (B)
Candidate keys. courseNo is never on the right side of an FD, so every key contains it. From and , name and rollNo determine each other. So (name, courseNo) gives rollNo and grade, and (rollNo, courseNo) gives name and grade. Both are keys. Neither can be shortened, since courseNo alone, name alone or rollNo alone does not determine every attribute. So name, rollNo and courseNo are prime, and grade is non-prime.
2NF. A violation needs a non-prime attribute that depends on part of a key. The FDs name rollNo and rollNo name have part of a key on the left, but their right side is prime. The FDs for grade have a whole key on the left. So the relation is in 2NF.
3NF. For every FD , either is a super key or is prime. FDs 1 and 2 have keys on the left. FDs 3 and 4 have prime attributes on the right. So the relation is in 3NF.
BCNF. Every FD must have a super key on the left. In name rollNo, name is not a super key, since it does not determine courseNo. So the relation is not in BCNF, and so not in 4NF either.
Answer: (B)
2NF. A violation needs a non-prime attribute that depends on part of a key. The FDs name rollNo and rollNo name have part of a key on the left, but their right side is prime. The FDs for grade have a whole key on the left. So the relation is in 2NF.
3NF. For every FD , either is a super key or is prime. FDs 1 and 2 have keys on the left. FDs 3 and 4 have prime attributes on the right. So the relation is in 3NF.
BCNF. Every FD must have a super key on the left. In name rollNo, name is not a super key, since it does not determine courseNo. So the relation is not in BCNF, and so not in 4NF either.
Answer: (B)
Keep practising