Postgresql – Replace JOIN OR
How can i modify join to get rid of JOIN AND (... OR ...) conditions? select table1.id, table1.country, table1.city, table1.platform, sum(table2.installs) as installs from schema.table1 inner join schema.table2 on table1.id = table2.id and ( table1.country = table2.country or table1.country is…