in Unknown Category edited by
630 views
1 vote
1 vote

An instance of relational schema $R(A,B,C)$ has distinct values of $A$ including $NULL$ values. Which one of the following is true?

  1. $A$ is a candidate key
  2. $A$ is not a candidate key
  3. $A$ is a primary key
  4. Both “$A$ is a candidate key” and “$A$ is a primary key”
in Unknown Category edited by
by
630 views

4 Answers

0 votes
0 votes
It is candidate key, because it has distinct value but it cant be primary key as primary key doesnt allow null value
0 votes
0 votes

(A) A is a candidate key ...

Key Points ::

1. The primary key can not have a NULL value....

2. The candidate key can have a NULL value ..…

 

1. https://csedoubts.gateoverflow.in/26837/nielit-nic-scientist-b-2020-set-c-ques-48

 

 

by
0 votes
0 votes

They have mentioned clearly that it’s “An instance of relational schema...”

And based on the instance we cannot conclude if an attribute will be CK or NOT. May be now, at this point of time, the values are distinct but it doesn’t mean that in future also it’s going to be distinct. Also, for the same reason we cannot even conclude that it’s not the CK. It may so happen that it’s the CK. Both are possible.

Similar question asked in GATE:

Databases: GATE CSE 1994 | Question: 3.7 (gateoverflow.in)

0 votes
0 votes
Option (B) is correct

A is not a candidate key .
Answer:

Related questions