FROM subquery
A subquery in FROM is a temporary table. Aggregate once to get a count per customer, then aggregate those counts.
task
Average orders per customer, over customers who ordered.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A subquery in FROM is a temporary table. Aggregate once to get a count per customer, then aggregate those counts.
Average orders per customer, over customers who ordered.