GATE 2004

November 12, 2023

Database-Management-System

November 12, 2023

GATE 2004

November 12, 2023

Database-Management-System

November 12, 2023

Database-Management-System

Question 30

Which of the following query transformations (i.e. replacing the l.h.s. expression by the r.h.s. expression) is incorrect? R1 and R2 are relations, C1, C2 are selection conditions and A1, A2 are attributes of R1?

A
σC1(σC1(R1)) → σC2(σC2(R1))
B
σC1(σA1(R1)) → σA1(σC1(R1))
C
σC1(R1 ∪ R2) → σC1(R1) ∪ σC1
D
πA1(σC1(R1)) → σC1(σA1(R1))
Question 30 Explanation: 
If the selection condition is on attribute A2, then we cannot replace it by RHS as there will not be any attribute A2 due to projection of A1 only.
Correct Answer: D
Question 30 Explanation: 
If the selection condition is on attribute A2, then we cannot replace it by RHS as there will not be any attribute A2 due to projection of A1 only.

Leave a Reply

Your email address will not be published. Required fields are marked *