Plan Trees
Intermediate Cardinalities
Intermediate row counts show how data changes through the plan.
Intermediate counts explain shape
A plan tree exposes row counts before the final result. A filter can reduce one input, and a join can emit more rows than that filtered input when one key matches more than once. Note: the growth is visible in the rendered row counts.
Input counts
The filtered left input has row count 2 and the right input has row count 3. Note: these are child-node counts.
cardinalities are exact counts on these tiny tables; choosing a plan by cost needs statistics and is deferred - no speed/perf claims; nested-loop vs hash is mechanism, not speed.
Join count
The join output row count is 3. Note: one matching input row can contribute multiple joined rows.
cardinalities are exact counts on these tiny tables; choosing a plan by cost needs statistics and is deferred - no speed/perf claims; nested-loop vs hash is mechanism, not speed.
Summary
Intermediate cardinalities are exact facts of this tiny execution. Note: choosing by cost needs statistics and is deferred.