Postgresql – Sum a column based on a condition in another column with partitions
I'm trying to sum a column based on a condition in another column with partition by in SQL, but it's not working. So I hope somebody can help me with this. My table is like this: Group_1 Group_2 Date Value…