R1(Name, Class) = {(a1, 9), (b1, 5), (c1, 6), (d1, 11)} and R2(Name, Class) = {(b1, 5), (f1, 8)}. Which operation produces the output {(b1, 5)}?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. R1 R2
Explanation
Only (b1, 5) is in both relations, so the output is R1 ∩ R2.
Note: Option C, R1 − (R1 − R2), also equals R1 ∩ R2 and produces the same output.
More Database Management Systems questions
- Match List I and List II
- Which relational algebra query computes the names of sailors who have reserved all boats?
- Which relational algebra query computes the names of sailors who have reserved a red and a green boat?
- Let R(ABCDEFGH) be a relation schema and F = {A → B, ABCD → E, EF → G, EF → H, ACDF → EG}. The minimal cover of this set of dependencies is
- A trigger is
- In reference to big data, consider the following databases: (A) Memcached (B) CouchDB (C) InfiniteGraph.