13,842 views
39 votes
39 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$

4 Answers

Best answer
29 votes
29 votes
Answer (B).

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 a prime attribute. And conversely, an attribute that does not occur in ANY candidate key is called a non-prime attribute.
selected by
54 votes
54 votes

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.

edited by
–6 votes
–6 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

Answer:

Related questions

7.6k
views
3 answers
33 votes
go_editor asked Sep 28, 2014
7,625 views
Given an instance of the STUDENTS relation as shown as below ... to be a key for this instance, the value $X$ should NOT be equal to______.
17.1k
views
7 answers
43 votes
go_editor asked Sep 28, 2014
17,113 views
Consider the following relational schema:employee (empId,empName,empDept) customer (custId,custName,salesRepId,rating) salesRepId is a foreign key referring to empId of ... all the employees with all their customers having a 'GOOD' rating.
11.1k
views
3 answers
43 votes
go_editor asked Sep 28, 2014
11,140 views
What is the optimized version of the relation algebra expression $\pi_{A1}(\pi_{A2}(\sigma_{F1}(\sigma_{F2}(r))))$, where $A1, A2$ are sets of attributes in $r$ ... (\sigma_{(F1 \wedge F2)}(r))$\pi_{A2}(\sigma_{(F1 \vee F2)}(r))$
12.1k
views
8 answers
35 votes
go_editor asked Sep 28, 2014
12,130 views
The maximum number of superkeys for the relation schema $R(E,F,G,H)$ with $E$ as the key is _____.