SQL Case File: 003

Aggregation

Finance sees thousands of source orders but only a few result rows. The query did not lose rows; it changed the output grain.

  • Answer Space: predict the SQL result before execution.
  • Problem Space: inspect tables, rows, columns, keys, and relationships.
  • Decision Space: choose the relational operations that prove the answer.