I am using PostgreSQL via the Ruby gem \'sequel\'.
I\'m trying to round to two decimal places.
Here\'s my code:
SELECT ROUND(AVG(some_column)
select ROUND(SUM(amount)::numeric, 2) as total_amount FROM transactions
gives: 200234.08