find belo criteria and required output
Input
-------
Code: Select all
type amount city
A NW
B 200
A DL
B 500
--------
Code: Select all
Type Amount
A 700
Please can any one help in this case