Select to get a value from a id combined with a max value
greatest-n-per-group problems are typically solved with a window function:

select idAction, numberLine, action
from (
  select idAction, numberLine, action, 
         row_number() over (partition by idaction order by numberline desc) as rn 
  from the_table
) t
where rn = 1;


If you can have more then one maximum value for numberline the above will only return one of them. If you want to see all of them, use dense_rank() instead of row_number()