I've following data like
ano asal
------------------
1 100
1 150
1 190
2 200
2 240
3 300
3 350
4 400
4 400
4 400
i want ans like max sal from 1 ,from 2,3 and 4 o/p like
ano asal
---------------
1 190
2 240
3 390
4 400
4 400
4 400
anovalue 3. The max looks like it's350not390.