Postgresql – SQL – Select rows that share same master account but different sub accounts with different values
I am trying to formulate a query in PostgresSQL, my table looks like this: Master_Account Sub_Account Cost 123 777 15 123 888 10 123 999 20 456 111 10 456 222 -15 789 789 10 I am trying to select…