• retagged by
22,349 views
49 49 votes

Consider the following statements $S1$ and $S2$ about the relational data model:

  • $S1$: A relation scheme can have at most one foreign key.
  • $S2$: A foreign key in a relation scheme $R$ cannot be used to refer to tuples of $R.$

Which one of the following choices is correct?

  1. Both $S1$ and $S2$ are true
  2. $S1$ is true and $S2$ is false
  3. $S1$ is false and $S2$ is true
  4. Both $S1$ and $S2$ are false

7 Answers

Best answer
71 71 votes
Both $S1$ and $S2$ are FALSE.

In a relation scheme multiple foreign attributes can be present referring to primary keys of other relation schemes. A typical example is an $\text{EXAM_RESULTS(sid,eid,marks)}$ scheme where $\text{sid}$ and $\text{eid}$ are foreign keys referring to the primary keys in $\text{STUDENT}$ and $\text{EXAM}$ schemes respectively.

$S2$ is FALSE because a foreign key can refer to the same scheme (self-referencing foreign key). A typical example is an $\text{EMPLOYEE(eid, mid, $\ldots$)}$ scheme where $\text{mid}$ is the Manager ID referring to the primary key $\text{eid}$ of the same scheme.
• selected by
1 1 vote
S1 is false because there is no rule that a relation schema can have atmost one foreign key in minium. It can have more than 1 foreign key as well.

S2 is false because in a relation a foreign key cant identify a tuple uniquely. so they cant be used to refer to a tuple of R

 

answer is D both are false
1 1 vote

Both S1 and S2 are false.

S1 is false because you can have more than 1 FK in one relation for example if u see the case of many to many realtion with both the entities are paritally participating in that case you form one extra table for relationship in which you have PK of both the entity relatiuon as FK so u are having more than one FK in one relation which is possible.

S2 is false because you can have self refrential FK also for example take case of self refrential relationship with both partial participation you will get 1 FK in the table itself refrening the PK of the table.

0 0 votes
Option D is correct:

S1 is false we can have more than one foreign key as per requirement
S2 is false  foregin key act upon columns so we can use it to refer to a tuple.
Answer:
Position:
Show:

Related questions

57 57 votes
2 answers 2 answers
22.3k
22.3k views
Arjun asked Feb 18, 2021
22,272 views
A data file consisting of $1,50,000$ student-records is stored on a hard disk with block size of $4096$ bytes. The data file is sorted on the primary key $\textrm{RollNo}...
40 40 votes
2 answers 2 answers
15.2k
15.2k views
Arjun asked Feb 18, 2021
15,228 views
The relation scheme given below is used to store information about the employees of a company, where $\textsf{empId}$ is the key and $\textsf{deptId}$ indicates the depar...
33 33 votes
3 answers 3 answers
17.4k
17.4k views
Arjun asked Feb 18, 2021
17,449 views
​​​​​Let $S$ be the following schedule of operations of three transactions $T_1$, $T_2$ and $T_3$ in a relational database system:$$R_2(Y), R_1(X), R_3(Z), R_1(Y)W_1(X), ...
46 46 votes
3 answers 3 answers
16.6k
16.6k views
Arjun asked Feb 18, 2021
16,553 views
Suppose the following functional dependencies hold on a relation $U$ with attributes $P,Q,R,S$, and $T$:$P \rightarrow QR$$RS \rightarrow T$Which of the following functio...