Postgresql – SQL for Smarties type question: Select records from table, with some values grouped
I have a database table with content like this: Id Label GroupId DueDate Amount 1 (null) A 1/1/2023 100.00 2 (null) A 1/2/2023 101.00 3 L1 A 1/3/2023 102.00 4 L1 A 1/4/2023 103.00 5 (null) B 1/3/2023 104.00 6…