I have a table with following set of data
ID (VARCHAR2 field) D001 D002 D010 D0012
I use max() in this field.
max()
Sele
You get D010 because alphabetically, D010 comes after D0012 or said another way, D01 comes after D00 and therefore anything that is D01x comes after anything that starts D00x.
D010
D0012
D01
D00
D01x
D00x