Skip to content
GATEiit

GATE DA 2025 Q56: Keys and NULLs in Person and Customer tables

Question

Consider the following two relations, named Customer\texttt{Customer} and Person\texttt{Person}, in a database:

Person (
      aadhaar CHAR(12) PRIMARY KEY,
      name VARCHAR(32));
Customer (
      name VARCHAR(32),
      email VARCHAR(32) PRIMARY KEY,
      phone CHAR(10),
      aadhaar CHAR(12),
        FOREIGN KEY (aadhaar) REFERENCES Person(aadhaar));

Which of the following statements is/are correct?

Try it: multiple select: one or more correct options

Select one or more options
Select all correct options. No negative marking, no partial marks.
Show answer and explanation

Answer: B, C (official GATE 2025 final answer key)

Concept used: Primary keys, foreign keys, uniqueness and NULL constraints in SQL.

First step: A primary key is unique and NOT NULL. In Customer, aadhaar is only a foreign key with no UNIQUE constraint, and phone has no NOT NULL constraint.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2025 DA question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key