Given relations $\textsf{R(w,x)}$ and $\textsf{S(y,z)},$ the result of
SELECT DISTINCT w, x
FROM R, S
ls guaranteed to be same as $\text{R},$ if
- $\textsf{R}$ has no duplicates and $\textsf{S}$ is non-empty
- $\textsf{R}$ and $\textsf{S}$ have no duplicates
- $\textsf{S}$ has no duplicates and $\textsf{R}$ is non-empty
- $\textsf{R}$ and $\textsf{S}$ have the same number of tuples