Let R and S be two relations with the following schemaR (\(\underline{P},\underline{Q}\),R1,R2,R3)S (\(\underline{P},\underline{Q}\),S1,S2)Where {P, Q} is the key for both schemas. Which of the following queries are
equivalent?I. \(\Pi _{P}(R\Join S)\)
II. \(\Pi _{p}(R)\Join \Pi _{P}(S)\)
III. \(\Pi _{P}(\Pi _{P,Q}(R)\cap \Pi _{P,Q}(S))\)
IV. \(\Pi _{P}(\Pi _{P,Q}(R)-(\Pi _{P,Q}(R)-\Pi _{P,Q}(S)))\)
- AOnly I and II
- BOnly I and III
- COnly I, II and III
- DOnly I, III and IV