Skip to content
Theory · The Query Planner · lesson 11 of 13

When estimates go wrong

The summary sheet on the shelf is written at stock-taking, while entries are added every day. A new shop has opened and gathered five thousand orders in a week, yet it is still not on the sheet. The clerk trusts the sheet and picks a route for one entry. The sheet can fail in another way too: it knows how many entries each shop and each barista has, but not that a barista works in only one shop.

In this lesson

  • Stale statistics
  • Linked columns
  • A function over a column
  • No hints
  • Common mistake
  • Key points