Quoting king <king_pepper99(at)hotmail(dot)com>:
>
> Does posgres support the equivalent to the mysql sum(if command in a
> SQL statement? I did not see reference to it in my readings.
The SQL standard CASE statement is supported and it can do the same.
Jochem