Cost of the query
(A, B, C) (D, F, E) (G, H)
Calculate output size of
- Output size of
is - Output size of
is
Let the previous output be of size
- Cost of join on
is - Cost of selection is
, it is pipelined - Cost of join on
is
Total cost is
Sorted clustered index on
- Cost of join on
is - Cost of selection is again 0
- Cost of join on
is
Total cost is
Sorted clustered index on
- Cost of join on
is - Cost of selection is again 0
- Cost of join on
is
Total cost is
(A, B, C) (D, E)
Calculate output size of
- Output size of
is - Output size of
is
Let the previous output be of size
- Cost of selection is
- Cost of join on
is - Cost of join on
is
Total cost is
Sorted clustered index on
- Cost of selection is
- Cost of join on
is - Cost of join on
is
Total cost is