SQL otrzyma maksymalnie na identyfikator

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