GATE DA 2025 Q56: Keys and NULLs in Person and Customer tables
- Database Management and Warehousing
- 2 marks
- MSQ
- No negative marking
Question
Consider the following two relations, named and , 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 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
Source: official GATE 2025 DA question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Database Management and Warehousing PYQs
- 2025 · Q16Non-dependency-preserving decomposition: which operator runs more?
- 2025 · Q17Relational algebra on Car, Make and Own
- 2025 · Q33SQL: loans larger than every SR Nagar loan
- 2025 · Q46OLAP: rows returned by GROUP BY CUBE(D1, D2)
- 2025 · Q57Candidate keys and BCNF for R(ABCDEFG)
- 2025 · Q62Relational division: customers with loans at every branch