Postgresql – GROUP BY with all combinations of columns
I am trying to figure out how to write a single select that would give me all combinations of values for certain aggregations. Let me give you an example of data: COUNTRY PRODUCT VALUE cz p1 5 cz p2 10…