If this is the format you can get it by two ways,I have used SUBSTRING_INDEX() to get the number and one approach is use the limit with order by
select
SUBSTRING_INDEX(SUBSTRING_INDEX(Inv,'-',-2),'-',1) inv
FROM Table1
ORDER BY inv DESC
LIMIT 1;
And other is to use the MAX() function
select
MAX(SUBSTRING_INDEX(SUBSTRING_INDEX(Inv,'-',-2),'-',1)) inv
FROM Table1