Wednesday 3 June 2020

UGC NET CS 2019 4 December | Question 71

Question 71
Given two tables R1(x, y) and R2(y, z) with 50 and 30 number of tuples respectively, Find maximum number of tuples in the output of natural join between tables R1 and R2 ie. R1 * R2 ? (* - Natural Join)
  1. 1. 30
  2. 2. 20
  3. 3. 50
  4. 4. 1500
Explanation
Natural Join: In this, the two join attributes must have the common attribute in both the relations.

Example: In worst case if all the values of the common attribute are same, then total tuples would be = |m|×|n| = 30×50 = 1500.

R1
XY
Standard 1CS
Standard 2CS
Standard 3CS
Standard 50CS

R2
ZY
AnilCS
AtulCS
JayaCS
30CS

R1⨝R2 : result table after natural join of two tables
XYZ
Standard 1CSAnil
Standard 1CSAtul
Standard 1CSJaya
Standard 2CSAnil
Standard 2CSAtul
Standard 2CSJaya
Standard 3CSAnil
Standard 3CSAtul
Standard 3CSJaya
Standard 50CS30
1550CS30

So, ∴ Maximum number of tuples in the output of Natural join between relation R1 and R2 = 1500 tuples.

So, option 4 is correct answer

PreviousNext
UGC NET CS December 2019 - Question 70UGC NET CS December 2019 - Question 72

No comments:

Post a Comment

UGC NET Computer Science December 2019 | Question 16

Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...

Popular Posts