Hi,
I have set of values and I want to order by as follows :
we scan left to right . for example for values like ’25 AB’ ,’30 MT’.
25 comes before 30.
[code]
create table test_table(COL1 varchar2(240));
insert into test_table values (‘50000’);
insert into test_table values (‘AS740TRN’);
insert into test_table values (‘QAS897ZCS’);
insert into test_table values (‘3125′);
insert into test_table values (’50’);
insert into test_table values (‘test’);
insert into test_table values (‘oraask’);
insert into test_table values (’25 AB’);
insert into test_table values(’30 AB’);
insert into test_table values(‘application2’);
[/code]
RESULT EXPECTED
————————-
25 AB
30 AB
50
3125
50000
AS740TRN
QAS897ZCS
application2
oraask
test
thanks in advance.
Use REGEXP_SUBSTR