Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres format number to 2 decimal places

SELECT ROUND(AVG(some_column)::numeric, 2)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgres #format #number #decimal #places
ADD COMMENT
Topic
Name
4+3 =