Código SQL [-] select a.id, a.sec, a.valor from tabla a where sec = ( select max(b.sec) from tabla b where b.id = a.id )
select a.id, a.sec, a.valor from tabla a where sec = ( select max(b.sec) from tabla b where b.id = a.id )