Just added: Embedded C From Zero
PostgreSQL
-- Step 1: total per month. Step 2: the best month. Step 3: that month's sales.
WITH monthly AS (
  SELECT month, SUM(amount) AS total
  FROM sales
  GROUP BY month
)
SELECT month, total FROM monthly ORDER BY month;