GATE CS 2024 · Set-1 · SQL Queries

NAT · 1 mark · Problem DBMS-SQL-0052

Consider the following two relations, \(R(A, B)\) and \(S(A, C)\) :\[\boldsymbol{R} \begin{array}{|c|c|} \hline \boldsymbol{A} & \boldsymbol{B} \\ \hline 10 & 20 \\ \hline 20 & 30 \\ \hline 30 & 40 \\ \hline 30 & 50 \\ \hline 50 & 95 \\ \hline \end{array}\]\[\boldsymbol{S} \begin{array}{|c|c|} \hline \boldsymbol{A} & \boldsymbol{C} \\ \hline 10 & 90 \\ \hline 30 & 45 \\ \hline 40 & 80 \\ \hline \end{array}\]The total number of tuples obtained by evaluating the following expression \(\sigma_{B \lt C}\left(R \bowtie_{R . A=S . A} S\right)\) is

Numerical answer (NAT).

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: [2.0, 2.0].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/422817/gate-cse-2024-set-1-question-25

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com