Open In App

GATE | GATE-CS-2000 | Question 49

Like Article
Like
Save
Share
Report

Given relations r(w, x) and s(y, z), the result of

SELECT DISTINCT w, x
       FROM r, s 

is guaranteed to be same as r, provided

(A) r has no duplicates and s is non-empty
(B) r and s have no duplicates
(C) s has no duplicates and r is non-empty
(D) r and s have the same number of tuples


Answer: (A)

Explanation: See question 3 of https://www.geeksforgeeks.org/database-management-system-set-1/

Quiz of this Question


Last Updated : 28 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads