918 views
0 0 votes
Will a single attribute key considered as a prime attribute as well?

I know If it is a compound key like (ABC) then my prime attribute set would be {A,B,C,AB,BC,AC}

But if I have only 1 Candidate key in my relation (A) then will A also be a prime attribute or not?

Also if multiple single attribute keys are there then what happens (Say {A}, {B} are both candidates) with the prime attributes?

3 Answers

0 0 votes
If A is only one candidate key then A, AB,AC will be prime attributes
0 0 votes
  • Prime attribute = any attribute that is part of some candidate key.

  • Non-prime attribute = not part of any candidate key.

So if an attribute alone forms a candidate key, it is 100% prime, because it is itself a full candidate key

0 0 votes
If A is the candidate key of the relation, then A itself is called as the prime attribute. Not the other attributes{B, C} in the super keys- AB, AC are called as Prime Attributes.

 

But if D -> A, then D would also be called as Prime Attribute.

Because, by definition prime attribute means part of candidate key, but not Super-key.

If the definition was w.r.t Super-key, then every attribute in the relation would be called as a prime attribute right? But that is not the case.

 

I hope it is clear to you now!
Position:
Show:

Related questions

1 1 vote
2 2 answers
162
162 views
GO Classes asked Sep 8
162 views
Consider the relation schema $R(A,B,C,D,E)$ with $F=\{AB \to D,\ AC \to E,\ A \to B,\ BC \to E,\ A \to E\}$.Consider the following functional dependencies:$A \to D$$AC \t...
1 1 vote
1 1 answer
103
103 views
GO Classes asked Sep 7
103 views
Consider the relation schema $R(A,B,C,D)$.Which of the following are trivial functional dependencies?$AB \to A$ $A \to AB$ $ABC \to BC$ $CD \to D$ $B \to C$
0 0 votes
0 0 answers
231
231 views
Anupam077 asked May 5
231 views
Do functional dependencies apply to a single relation? If yes, kindly explain why; if not, please justify your answer. As per my understanding, functional dependencies ar...