QuestionQ103

VerifiedTuning SQL Statements

Examine the following execution plan:

Question Image

What is the join order?

Explanation

The execution starts by combining TIMES with PRODUCTS, then combines that result with CUSTOMERS, and finally joins the resulting row source to SALES. The intermediate cardinalities confirm this order: 1,101 TIMES rows multiplied by 72 PRODUCTS rows produces 79,272 rows, and multiplying by 63 CUSTOMERS rows produces 4,994,136 rows before the final join to SALES.

Community Discussion

No comments yet. Be the first to start the discussion!