I'm trying to sort a field that has value that looks like this
AA06-13243536
I need to order by the alphanumeric first (so AA) and then the numeric. How can I do this. I'm on Oracle 9.0.1 and when I use the following code
SELECT DISTINCT A FROM table ORDER BY A, to_number(regexp_substr(A,'^0-9+'))
I get the following error message:
ORA-00900 invalid SQL statement
Can anybody help me?
Thanks