Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Order by comma separated number values???

user9207291Mar 24 2010 — edited Mar 26 2010
I have following table

create table ord as
(select '4,7,10' col1
union
'4,7,8'
union
'5,6,11'
union
'4,7,10'
union
'4,7,6'
union
'4,7,7'
from dual)

I want to say select * from ord order by col1 and the order by should look at each number in the column vs ordering it by string...
Currently 4,7,10 comes up first(as it does a string comparision) but I want 4,7,6 to come up first.
This post has been answered by BluShadow on Mar 26 2010
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 23 2010
Added on Mar 24 2010
11 comments
10,997 views