Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9057

sum and eliminate duplicate

$
0
0

Hi to all!

I have a table like this:

numnameamount
1tiger10
2dolphin20
1tiger5
1tiger3

I need to delete duplicate rows(by name for example) and to sum up amount.

 

Finally:

numnameamount
1tiger18
2dolphin20

 

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.


Viewing all articles
Browse latest Browse all 9057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>