Sunday, 6 September 2020

UGC-NET Computer Science Previous Year Question Papers

 UGC-NET NOVEMBER 2017 QUESTIONS WITH EXPLANATION 

CBSE-NET NOVEMBER 2017 QUESTIONS WITH EXPLANATION 

NTA-NET NOVEMBER 2017 QUESTIONS WITH EXPLANATION 

Q:11 Given two relations R1(A, B) and R2(C, D), the result of following query

Select distinct A, B
from R1, R2

is guaranteed to be same as R1 provided one of the following condition is satisfied.
(A) R1 has no duplicates and R2 is empty.
(B) R1 has no duplicates and R2 is non – empty.
(C) Both R1 and R2 have no duplicates.
(D) R2 has no duplicates and R1 is non – empty.


Answer: (B)

Explanation: Select A,B
From R1, R2 :
In this query first we will take Cartesian product of R1, R2 (R2 must be non empty)for this 0- R2 then select distinct A,B from Cartesian product of R1, R2 (for A,B being distinct there should not any duplicate A,B).
And
Select A,B
From R2
For this query A,B → No duplicate A,B.
By combining condition for both query we will get the right condition.
So, option (B) is correct.

No comments:

Post a Comment