Select max value of each group

select name, max(value)
from out_pumptable
group by name

Leave a Comment