SQL Obtenha max por id

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