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?
- (A)
aadhaaris a candidate key in theCustomerrelation - (B)
phonecan be NULL in theCustomerrelation - (C)
aadhaaris a candidate key in thePersonrelation - (D)
aadhaarcan be NULL in thePersonrelation
