I have a view
matches_view
returning the following:
id | name | wins | losses | matches
----+----------------+------+--------+---------
2 | Peter | 1 | 2 | 3
1 | Kevin | 3 | 1 | 4
3 | John | | 1 |
How can I replace the empty columns in the last row with 0s in postgreSQL?
null, so it might be as easy as usingCOALESCE(field, 0), but it's impossible to tell withough knowing how the view is generated.