Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Sorting alphanumeric column
Paul wrote:
>
> DA Morgan <damorgan_at_psoug.org> wrote:
>
>
>
>>You got 2.8 before 2.9 which was my stopping point. It is easy if >>that is the correct answer but the OP indicated it was not.
If you are correct then:
ORDER BY TO_NUMBER(TRANSLATE(column_name, '1ABT', '1')) solves the problem.
My guess is that TA must come before TB so that TB9.9 would preceed TA1.0. Lets see if the OP will clarify the matter.
-- Daniel A. Morgan http://www.psoug.org damorgan_at_x.washington.edu (replace x with u to respond)Received on Thu Jun 02 2005 - 10:35:57 CDT
![]() |
![]() |