Just added: Embedded C From Zero
PostgreSQL
-- Show each rep's month-over-month change.
-- The change needs this row's amount MINUS the previous row's amount.
SELECT rep, month, amount
FROM sales
ORDER BY rep, month;