Skip to content
Exercise · The Query Planner · lesson 3 of 13

Exercise: estimates from common values

The coffee shop's analyst wants to know how many rows the statistics promise for the condition employee_id = … on the orders table without running EXPLAIN for every employee. The check runs on the coffee chain's big database.