427 views
0 votes
0 votes

Which of the following Queries is more Efficient on the given data?

1. In terms of Space.
2. In terms of Calculation. also, How many calculations are necessary for Each?

 

1 Answer

0 votes
0 votes

In terms of space :second relational expression is efficient. Because the final table on which conditions will be applied contains 3 attributes only  whereas in first relational expression the  table on which the conditions are applied will contain more than  3 attributes.  obviously the smaller the table , more space efficient it would be.

and the number of calculations is equal for both the relational expressions .

Related questions

0 votes
0 votes
2 answers
2
Priyansh Singh asked Mar 27, 2019
1,577 views
Consider two relations R1 , R2 with N1 and N2 tuples where N2 N1 0, what are the minimum and maximum rows for the RA expression R2/R1 ?
0 votes
0 votes
0 answers
4
gatecrack asked Dec 10, 2018
503 views