Hi Experts,
I am new SAP HANA.
Can any one of you help me on this issue?
Actually my input is:
Customer ID | Customer Name | Amount | Quantity |
---|---|---|---|
1000 | C1 | 1000 | 12 |
1000 | C1 | 2000 | 5 |
1000 | C1 | 1500 | 9 |
1000 | C1 | 1800 | 16 |
1001 | C2 | 500 | 18 |
1000 | C1 | 600 | 6 |
1000 | C1 | 700 | 17 |
1001 | C2 | 1860 | 5 |
1001 | C2 | 500 | 3 |
I need the result in the below format
Customer ID Customer Name Amount Quantity
1000 C1 1000 12
2000 5
1500 9
1800 16
600 6
700 17
Sub Total: 7600 67
1001 C2 500 18
1860 5
500 3
Sub Total: 2860 26
Grand Total: 10460 93