GATE Assistant

Past questions › Data Science and Artificial Intelligence › GATE 2025

GATE 2025 · DA · MSQ · 2 marks · Database Management and Warehousing › Integrity Constraints & Normal Forms

GATE 2025 Data Science and Artificial Intelligence question: Consider the following two relations, named Customer and Person , in a database: code…

Consider the following two relations, named Customer and 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?

  1. (A)

    aadhaar is a candidate key in the Customer relation

  2. (B)

    phone can be NULL in the Customer relation

  3. (C)

    aadhaar is a candidate key in the Person relation

  4. (D)

    aadhaar can be NULL in the Person relation

Show answer

Official answer: B,C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion