Let π, π, π
and π be the attributes of a relation in a relational schema. Let π βΆπ
indicate functional dependency in the context of a relational database, where
π, π β{π, π, π
, π}.
Which of the following options is/are always true?
Step 1: Evaluate option A: if \(\{P,Q\} \rightarrow \{R\}\) and \(\{P\} \rightarrow \{R\}\), then \(\{Q\} \rightarrow \{R\}\). This does not follow from Armstrong's axioms; a larger determinant implying R, together with a smaller subset of it also implying R, gives no information about whether the remaining attribute Q alone determines R. A relation where P alone forces R while Q has no functional relation to R at all satisfies both premises yet violates the conclusion. So option A is FALSE.
Step 2: Evaluate option B: if \(\{P,Q\} \rightarrow \{R\}\), then \(\{P\} \rightarrow \{R\}\) or \(\{Q\} \rightarrow \{R\}\). Functional dependencies do not obey a decomposition rule on the determinant side. A relation where R is computed jointly from both P and Q, with neither alone determining R, satisfies the premise while violating both parts of the conclusion. So option B is FALSE.
Step 3: Evaluate option C: if \(\{P\} \rightarrow \{R\}\) and \(\{Q\} \rightarrow \{S\}\), then \(\{P,Q\} \rightarrow \{R,S\}\). Using Armstrong's axioms: augment \(P \rightarrow R\) with Q to get \(PQ \rightarrow RQ\); augment \(Q \rightarrow S\) with R to get \(RQ \rightarrow RS\). Chaining by transitivity, \(PQ \rightarrow RQ \rightarrow RS\), so \(PQ \rightarrow RS\). This is a provable consequence of the axioms, so option C is always TRUE.
Step 4: Evaluate option D: if \(\{P\} \rightarrow \{R\}\), then \(\{P,Q\} \rightarrow \{R\}\). This is a direct application of the Augmentation axiom: from \(P \rightarrow R\), adding Q to both sides gives \(PQ \rightarrow RQ\), and since \(\{R,Q\} \rightarrow \{R\}\) trivially, transitivity gives \(\{P,Q\} \rightarrow \{R\}\). Option D is always TRUE.
Step 5: The always-true statements are C and D.
\[ \boxed{\text{Options C and D are always true}} \]
A schedule of three database transactions \(T_1\), \(T_2\), and \(T_3\) is shown. \(R_i(A)\) and \(W_i(A)\) denote read and write of data item A by transaction \(T_i\), \(i = 1, 2, 3\). The transaction \(T_1\) aborts at the end. Which other transaction(s) will be required to be rolled back?

In the context of schema normalization in relational DBMS, consider a set F of
functional dependencies. The set of all functional dependencies implied by F is
called the closure of F. To compute the closure of F, Armstrongβs Axioms can be
applied. Consider π, π, and π as sets of attributes over a relational schema. The three
rules of Armstrongβs Axioms are described as follows.
Reflexivity: If πβπ , then πβπ
Augmentation: If πβπ, then ππβππ for any Z
Transitivity: If πβπ and πβπ, then πβπ
The additional rule of Union is defined as follows.
Union: If πβπ and πβπ, then πβππ
It can be proved that the additional rule of Union is also implied by the three rules
of Armstrongβs Axioms. Listed below are four combinations of these three rules.
Which one of these combinations is both necessary and sufficient for the proof ?
Consider a relational database schema with a relation π
(π΄, π΅, πΆ, π·). If {π΄, π΅} and
{π΄, πΆ} are the only two candidate keys of the relation π
, then the number of superkeys
of relation π
is ______. (answer in integer)