Postgresql turn null into zero [duplicate] March 6, 2023 by Tarik select coalesce(max(column), 0) from mytable;