select max(to_number(ltrim(aefo_number,'VE')))
from exemption
where aefo_number like 'E%'
or aefo_number like 'V%'
I am getting Function to_number(text) does not exist error for the above select statement and I am unable to convert it.
If anyone know the syntax for the select statement please let me know