Looking forward to when we move to 9.4 so I can start using "sum(foo) FILTER (WHERE bar)" instead of the ugly "sum(CASE WHEN bar THEN foo END)".
If you need help migrating to PGSQL send me an email and I'll help you escape from MSSQHell. :D
We also have a count_if() function: count_if(bar)
http://prestodb.io/docs/current/functions/conditional.html#i...
http://prestodb.io/docs/current/functions/aggregate.html#cou...