edited by
271 views
2 votes
2 votes

Assume that relation $R$ is defined over the attribute set $A$ and relation $S$ is defined over the attribute set $B$ such that $B \subseteq A$. Let $C = A - B,$ that is, $C$ is the set of attributes of $R$ that are not attributes of $S.$ A division operator $R \div S$ defines a relation over the attributes $C$ that consists of the set of tuples from $R$ that match the combination of every tuple in $S.$ Which of the following relational algebra query is equivalent to $R \div S?$

  1. $\Pi_C(R) –  \Pi_C(\Pi_C(R) \times S) -R)$
  2. $\Pi_C(R) – \Pi_C(\Pi_C(R) \times S) -S)$
  3. $\Pi_C(R) – \Pi_A(\Pi_C(R) \times S) -S)$
  4. $\Pi_C(R) – \Pi_C(\Pi_B(S) \times R) -R)$
edited by

1 Answer

Best answer
3 votes
3 votes
$R \div S = \Pi_C(R) –\Pi_C(\Pi_C(R) \times S) -R)$
selected by
Answer:

Related questions

2 votes
2 votes
1 answer
3
gatecse asked Oct 8, 2020
275 views
Consider the following relation instance.$$\textbf{Student}$$$$\begin{array}{|c|c|c|c|c|}\hline \textbf{Roll}& \textbf{FirstName} & \textbf{LastName} & \textbf{Weight}\\\...