edited by
634 views
1 votes
1 votes

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”
edited by

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

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)

Answer:

Related questions

3 votes
3 votes
4 answers
1
2 votes
2 votes
2 answers
2
gatecse asked Dec 9, 2020
730 views
Number of letter repeated in the given word $’MEASUREMENTS’$ are indicated in front of each alternative. Identify the correct alternative.$M_2E_2A_2S_2U_1R_1N_1T_1$$M...
2 votes
2 votes
1 answer
3
gatecse asked Dec 9, 2020
713 views
If $09/12/2001(DD/MM/YYYY)$ happens to be Sunday, then $09/12/1971$ would have been a:WednesdayTuesdaySaturdayThursday
2 votes
2 votes
2 answers
4
gatecse asked Dec 9, 2020
778 views
If a cube with length, height and width equal to $10\; cm$, is reduced to a smaller cube of height, length and width of $9\; cm$ then reduction in volume is :$172\;cm^3$$...