First time here? Checkout the FAQ!
+9 votes

A prime attribute of a relation scheme $R$ is an attribute that appears

  1. in all candidate keys of $R$
  2. in some candidate key of $R$
  3. in a foreign key of $R$
  4. only in the primary key of $R$
asked in Databases by Veteran (87.2k points)   | 1.1k views
Why some?  Why not all?
check below comment.
I have a different doubt what if candidate key is= A then is A a prime attribute.??
if FD : A->BC over R(A,B,C) ,

CK : A

prime attribute : A

3 Answers

+17 votes
Best answer
prime attribute is a constituent of a candidate key. it need not present in all candidate keys. hence option B is correct

correct me if i went wrong
answered by Veteran (11.2k points)  
selected by
@Sankar: yes you are correct it is sufficient if the prime attribute is in any of candidate key. did not read all the options , my bad

Consider a relation $R(ABCDE)$ and $FD =\left \{ AB\rightarrow CD,C\rightarrow B,D\rightarrow E \right \}$.

Here Candidate key  are $AB$ and $AC$.

Prime Attribute:$A$,$B$,$C$.

Now check is B is appearing in both C.K.?No

So prime attribute appears in some CK.

@ManojK sir , It wiould be nice if you could explain ( or verify ) how to find the prime attribute

AFAIK ,  Prime attributes are part of CK
Here CK are AB, AC .  Dependncies invloving them
AC→A [ Trivial ]

$\Rightarrow$ (Prime attributes are part of Key ) Prime attributes are CD, C,D,B,A

As you stated Prime attributes are part of CK .

CD is nether CK nor part of any CK here then how CD,D becomes prime attribute.
Got it :)
+1 vote
Answer (B).

The constituent attributes of a Candidate key or simply the attributes of a candidate key are called the prime attributes. Suppose ABC is one candidate key of a Relation R(ABCDEFGH). Then the attributes A, B and C all are prime attributes. Similarly if ABD is also another candidate key in the same relation R, then D is also the prime attribute. And conversely, an attribute that does not occur in ANY candidate key is called a non-prime attribute.
answered by Loyal (4k points)  
–4 votes

(A) in all candidate keys of $R$

a prime attribute need not be necessaryly in the primary key alone, though attributes in all the candidate key are considered prime attribute

answered by Loyal (3.3k points)  
it need not be  in all candidate keys of R

Related questions

+8 votes
2 answers
asked in Databases by jothee Veteran (87.2k points)   | 378 views

Top Users Sep 2017
  1. Habibkhan

    6504 Points

  2. Arjun

    2254 Points

  3. Warrior

    2234 Points

  4. nikunj

    1980 Points

  5. manu00x

    1726 Points

  6. Bikram

    1726 Points

  7. SiddharthMahapatra

    1718 Points

  8. makhdoom ghaya

    1680 Points

  9. A_i_$_h

    1668 Points

  10. rishu_darkshadow

    1554 Points

25,999 questions
33,568 answers
31,035 users