Making charts in SQL
code.openark.org