GateAI
Integrity Constraints and Normal Forms

GATE CSE 2014 Set 2 · Q22

NAT1 markEasy

Time

Given an instance of the STUDENTS relation as shown below: For (StudentName\textit{StudentName}, StudentAge\textit{StudentAge}) to be a key for this instance, the value X should NOT be equal to _________.

GATE CSE 2014 Set 2 Q22 diagram

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 19

Integrity Constraints and Normal Forms

A set of attributes forms a key for a relation instance if and only if no two distinct tuples have identical values for that set of attributes (uniqueness property).

Examining the tuples in the given relation for (StudentName,StudentAge)(\textit{StudentName}, \textit{StudentAge}):

  1. (Shankar,X)(\text{Shankar}, X)

  2. (Swati,19)(\text{Swati}, 19)

  3. (Shankar,19)(\text{Shankar}, 19)

  4. (Swati,18)(\text{Swati}, 18)

  5. (Ganesh,19)(\text{Ganesh}, 19)

If X=19X = 19, the first tuple becomes (Shankar,19)(\text{Shankar}, 19), which is identical to the third tuple's (Shankar,19)(\text{Shankar}, 19). This would violate the uniqueness property required of a candidate key.

Therefore, XX should NOT be equal to 19.

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 Q22 of the GATE CSE 2014 Set 2 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. 4 of them are 1-mark NAT questions like this one, and GATE CSE 2014 Set 2 has 2.

How GATE tests Integrity Constraints and Normal Forms

More from GATE CSE 2014 Set 2

Share this solution

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

GateAI solution cardGATE CSE 2014 Set 2 · Q22 · NAT

Given an instance of the STUDENTS relation as shown below: For ( StudentName, StudentAge) to be a key for this instance, the value X should NOT be equal to …

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.