Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql if null then 0

select coalesce(avg(bar), 0) from foo;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgresql #null
ADD COMMENT
Topic
Name
2+8 =