I have a table with following set of data
ID (VARCHAR2 field) D001 D002 D010 D0012
I use max() in this field.
max()
Sele
below code is working for me as per your expectation
select max(to_number(regexp_substr(id, '\d+'))) id from ;