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)
Try casting your column to a numeric like:
SELECT ROUND(cast(some_column as numeric),2) FROM table