RE: order by problem

RE: order by problem

 

  

You could SUBSTR the numeric portion of that column, cast it into DECIMAL
and order by that column.

-----Original Message-----
From: Shilpa Gujral
[mailto:db2udbdba-ezmlmshield-x89106242.[Email address protected]
Sent: 31 August, 2005 08:06
To: LazyDBA Discussion
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

__________________________________________________________________________________________________________________________________

Standard Bank Disclaimer and Confidentiality Note

This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Standard Bank Group Limited
and/or its subsidiaries ("the Group"). It is confidential, private and intended for the addressee only. Should you not be the addressee and receive this e-mail by
mistake, kindly notify the sender, and delete this e-mail, immediately and do not disclose or use same in any manner whatsoever. Views and opinions
expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or
damages whatsoever and howsoever incurred, or suffered, resulting, or arising, from the use of this email or its attachments. The Group does not warrant the integrity
of this e-mail nor that it is free of errors, viruses, interception or interference. Licensed divisions of the Standard Bank Group are authorised financial services providers
in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 (FAIS).
For information about the Standard Bank Group Limited visit our website http://www.standardbank.co.za
___________________________________________________________________________________________________________________________________

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