GateAI
Integrity Constraints and Normal Forms

GATE CSE 2016 Set 1 · Q23

MCQ1 markMedium

Time

A database of research articles in a journal uses the following schema. (VOLUME\text{VOLUME}, NUMBER\text{NUMBER}, STARTPAGE\text{STARTPAGE}, ENDPAGE\text{ENDPAGE}, TITLE\text{TITLE}, YEAR\text{YEAR}, PRICE\text{PRICE}) The primary key is (VOLUME\text{VOLUME}, NUMBER\text{NUMBER}, STARTPAGE\text{STARTPAGE}, ENDPAGE\text{ENDPAGE}) and the following functional dependencies exist in the schema. (VOLUME,NUMBER,STARTPAGE,ENDPAGE)→TITLE(VOLUME,NUMBER)→YEAR(VOLUME,NUMBER,STARTPAGE,ENDPAGE)→PRICE \begin{aligned} (\text{VOLUME}, \text{NUMBER}, \text{STARTPAGE}, \text{ENDPAGE}) &\to \text{TITLE} \\ (\text{VOLUME}, \text{NUMBER}) &\to \text{YEAR} \\ (\text{VOLUME}, \text{NUMBER}, \text{STARTPAGE}, \text{ENDPAGE}) &\to \text{PRICE} \end{aligned} The database is redesigned to use the following schemas. (VOLUME\text{VOLUME}, NUMBER\text{NUMBER}, STARTPAGE\text{STARTPAGE}, ENDPAGE\text{ENDPAGE}, TITLE\text{TITLE}, PRICE\text{PRICE}) (VOLUME\text{VOLUME}, NUMBER\text{NUMBER}, YEAR\text{YEAR}) Which is the weakest normal form that the new database satisfies, but the old one does not?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: B) 2NF

Integrity Constraints and Normal Forms
  1. Analyze the original schema:

    • Relation: R(VOLUME,NUMBER,STARTPAGE,ENDPAGE,TITLE,YEAR,PRICE)R(\text{VOLUME}, \text{NUMBER}, \text{STARTPAGE}, \text{ENDPAGE}, \text{TITLE}, \text{YEAR}, \text{PRICE})

    • Candidate / Primary Key: (VOLUME,NUMBER,STARTPAGE,ENDPAGE)(\text{VOLUME}, \text{NUMBER}, \text{STARTPAGE}, \text{ENDPAGE})

    • Prime attributes: VOLUME,NUMBER,STARTPAGE,ENDPAGE\text{VOLUME}, \text{NUMBER}, \text{STARTPAGE}, \text{ENDPAGE}

    • Non-prime attributes: TITLE,YEAR,PRICE\text{TITLE}, \text{YEAR}, \text{PRICE}

    • Functional dependency: (VOLUME,NUMBER)→YEAR(\text{VOLUME}, \text{NUMBER}) \to \text{YEAR}

    • Here, (VOLUME,NUMBER)(\text{VOLUME}, \text{NUMBER}) is a proper subset of the candidate key, and YEAR\text{YEAR} is a non-prime attribute. This represents a partial dependency, violating the condition for 2NF.

    • Therefore, the original schema is in 1NF, but not in 2NF.

  2. Analyze the redesigned schemas:

    • R1(VOLUME,NUMBER,STARTPAGE,ENDPAGE,TITLE,PRICE)R_1(\text{VOLUME}, \text{NUMBER}, \text{STARTPAGE}, \text{ENDPAGE}, \text{TITLE}, \text{PRICE}) with primary key (VOLUME,NUMBER,STARTPAGE,ENDPAGE)(\text{VOLUME}, \text{NUMBER}, \text{STARTPAGE}, \text{ENDPAGE}).

    • R2(VOLUME,NUMBER,YEAR)R_2(\text{VOLUME}, \text{NUMBER}, \text{YEAR}) with primary key (VOLUME,NUMBER)(\text{VOLUME}, \text{NUMBER}).

    • In both R1R_1 and R2R_2, every functional dependency has a superkey on the left-hand side. Hence, both relations are in 2NF, 3NF, and BCNF.

  3. Identify the weakest normal form satisfied by the new database but not the old one:

    • Hierarchy of normal forms (from weakest to strongest): 1NF<2NF<3NF<BCNF\text{1NF} < \text{2NF} < \text{3NF} < \text{BCNF}.

    • Since the old database satisfies 1NF and fails 2NF, while the new database satisfies 2NF (and higher), the *weakest* such normal form is 2NF.

Hence, the correct option is (B).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Integrity Constraints and Normal Forms previous year question is Q23 of the GATE CSE 2016 Set 1 paper. Find more GATE CSE PYQs on Integrity Constraints and Normal Forms in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Integrity Constraints and Normal Forms PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Integrity Constraints and Normal Forms in GATE CSE

Integrity Constraints and Normal Forms has 30 GATE CSE PYQs across 20 papers from 2011 to 2026. 10 of them are 1-mark MCQs like this one, and GATE CSE 2016 Set 1 has 2.

How GATE tests Integrity Constraints and Normal Forms

More from GATE CSE 2016 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2016 Set 1 · Q23 · MCQ

A database of research articles in a journal uses the following schema. (VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, YEAR, PRICE) The primary key is (VOLUME, NUMBER, STARTPAGE, ENDPAGE) and the following functional dependencies exist in the schema. (VOLUME, NUMBER, STARTPAGE, ENDPAGE) &→ TITLE (VOLUME, NUMBER) &→ YEAR (VOLUME, NUMBER, STARTPAGE, ENDPAGE) &→ PRICE The database is redesigned to use the following schemas. (VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, PRICE) (VOLUME, NUMBER, YEAR) Which is the weakest normal form that the new database satisfies, but the old one does not?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.