GATE CS 2000 · SQL Queries

MCQ · 1 mark · Problem DBMS-SQL-0069

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, if
  1. A
    R has no duplicates and S is non-empty
  2. B
    R and S have no duplicates
  3. C
    S has no duplicates and R is non-empty
  4. D
    R and S have the same number of tuples

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

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/213548/isro2018-40

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