what I am looking to do is merge several rows of data to be displayed as a single row.
FROM THIS:
| Contract ID | Contract group ID | Amount |
|---|---|---|
| 140 | 189 | 90.00 |
| 140 | 190 | 85.00 |
| 140 | 191 | 300.00 |
| 151 | 190 | 10.00 |
| 152 | 189 | 200.00 |
| 152 | 191 | 50.00 |
TO THIS:
| Contract ID | Group 189 | Group 190 | Group 191 | Total amount |
|---|---|---|---|---|
| 140 | 90.00 | 85.00 | 300.00 | 475.00 |
| 151 | 00.00 | 10.00 | 00.00 | 10.00 |
| 152 | 200.00 | 00.00 | 50.00 | 50.00 |
Any suggestions would be most welcome.
Thanks.