Hi to all!
I have a table like this:
num | name | amount |
---|---|---|
1 | tiger | 10 |
2 | dolphin | 20 |
1 | tiger | 5 |
1 | tiger | 3 |
I need to delete duplicate rows(by name for example) and to sum up amount.
Finally:
num | name | amount |
---|---|---|
1 | tiger | 18 |
2 | dolphin | 20 |
I know how to delete duplicate: delete adjacent duplicates from lt_table.
But I can't understand how to sum up fields at the same time.
Regards, Alexander.