Let r and s be two relations over the relation schemes R and S respectively, and let A be an attribute in R. The relational algebra expression is always equal to
View worked solution
Answer: C
The given relational algebra expression is:
We are given that is an attribute in the schema of relation .
According to the heuristic query optimization rules in relational algebra, a selection operation can be pushed down through a join if the selection condition involves only the attributes of one of the relations.
Since the selection condition only references the attribute , which belongs to the schema of relation , we can apply the selection directly to before performing the join:
This optimization reduces the size of the relation before the join operation, making the query evaluation more efficient while producing the exact same result.
Thus, the expression is always equal to .
Free practice · Your answers on this page are not saved.
