Given relations R(w,x) and S(y,z), the result of
SELECT DISTINCT w,x
FROM R,Sis guaranteed to be same as R, if
- AR has no duplicates and S is non-empty
- BR and S have no duplicates
- CS has no duplicates and R is non-empty
- DR and S have the same number of tuples