Fun with SQL in Postgres: Finding Revenue Accrued per Day | Hacker News Reader