Relational Queries questions

Q35

GATE CS 2024 CS-1Relational QueriesNAT1 mark
Consider the following two relations, R(A,B) and S(A,C):

The total number of tuples obtained by evaluating the following expression
σB<C(R⋈R.A=S.AS)\sigma_{B<C}(R \bowtie_{R.A=S.A} S)
is _________
Question figure
Question figure
Show answer without attempting

Answer: 2

Q45

GATE CS 2024 CS-2Relational QueriesMCQ2 marks−2/3 if wrong
The relation schema, Person(pid, city)\text{Person(pid, city)}, describes the city of residence for every person uniquely identified by pid\text{pid}. The following relational algebra operators are available: selection, projection, cross product, and rename.

To find the list of cities where at least 3 persons reside, using the above operators, the minimum number of cross product operations that must be used is
Show answer without attempting

Answer: B

0/20 correct0 marks

Related topics in Databases