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)
Error:function round(double precision, integer) does not exist
Solution: You need to addtype cast then it will work
Ex: round(extract(second from job_end_time_t)::integer,0)
round(extract(second from job_end_time_t)::integer,0)