recategorized by
1,043 views
0 votes
0 votes

​​​​​Consider a database that includes the following relations:

Defender(name, rating, side, goals)
Forward(name, rating, assists, goals)
Team(name, club, price)

Which ONE of the following relational algebra expressions checks that every name occurring in Team appears in either Defender or Forward, where $\phi$ denotes the empty set?

  1. $\Pi_{\text {name }}($ Team $) \backslash\left(\Pi_{\text {name }}(\right.$ Defender $) \cap \Pi_{\text {name }}($ Forward $\left.)\right)=\phi$
  2. $\left(\Pi_{\text {name }}(\right.$ Defender $) \cap \Pi_{\text {name }}($ Forward $\left.)\right) \backslash \Pi_{\text {name }}($ Team $)=\phi$
  3. $\Pi_{\text {name }}($ Team $) \backslash\left(\Pi_{\text {name }}(\right.$ Defender $) \cup \Pi_{\text {name }}($ Forward $\left.)\right)=\phi$
  4. $\left(\Pi_{\text {name }}(\right.$ Defender $) \cup \Pi_{\text {name }}($ Forward $\left.)\right) \backslash \Pi_{\text {name }}($ Team $)=\phi$

recategorized by

1 Answer

0 votes
0 votes
D
Answer:

Related questions

1.1k
views
2 answers
0 votes
Arjun asked Feb 16
1,058 views
Consider the following two tables named Raider and Team in a relational database maintained by a Kabaddi league. The attribute ID in table Team references the primary key...
1.0k
views
1 answers
0 votes
Arjun asked Feb 16
1,011 views
​​​​​​Given the relational schema $R=(U, V, W, X, Y, Z)$ and the set of functional dependencies:\[\{U \rightarrow V, U \rightarrow W, W X \rightarrow Y, W X \...
956
views
1 answers
0 votes
Arjun asked Feb 16
956 views
​​​​​​An OTT company is maintaining a large disk-based relational database of different movies with the following schema:\[\begin{array}{l}\text { Movie (ID, ...
4.2k
views
2 answers
1 votes
Arjun asked Feb 16
4,208 views
​​​​​If ' $\rightarrow$ ' denotes increasing order of intensity, then the meaning of the words [sick $\rightarrow$ infirm $\rightarrow$ moribund] is analogous t...