Re: order by problem

Re: order by problem

 

  





Use this

SELECT table1,to_Number(substr(a.UserNumber1,2,2)) as c FROM table1 a
order by c

Thanks
Himanshu Dhingra




"Shilpa Gujral "
<db2udbdba-ezmlms
hield-x89106242.x To
[Email Address Removed] "LazyDBA Discussion"
a.com> <[Email address protected]
cc
31/08/2005 11:35
Subject
order by problem










Hi All,
I have a "user_number" column which contains the following values A1,
A2, A3.....A10, A11....

When i use order by on this column, the result is as follows:
A1, A10, A11,... A2,....., A3.....

but i the desired result is:
A1, A2, A3,.... A10, A11...

What should I do to achieve this result?

Regards,
Shilpa Gujral


---------------------------------------------------------------------
PLEASE CLICK REPLY-ALL TO SEND A REPLY TO EVERYONE
website: http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html




DB2 & UDB email list listserv db2-l LazyDBA home page