Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Change sorting behaviour?

Re: Change sorting behaviour?

From: justme <someq_at_rogers.com>
Date: Fri, 26 Apr 2002 01:38:51 GMT
Message-ID: <Lc2y8.14828$Il1.11690@news02.bloor.is.net.cable.rogers.com>


Try
select field
from table
order by length(field),field

"Andreas Koch" <mail_at_kochandreas.com> wrote in message news:aa9e2p$m1h$04$1_at_news.t-online.com...
> Hi,
>
> is there a way to make oracle sort a varchar column in Format TextNumber
> (e.g. Example01, Data42, etc) allways as "Text as Text and
> Number as Number" ?
> (e.g
> Data1
> Data2
> Data9
> Data10
> Error1
> Error5
>
> instead of
>
> Data1
> Data10
> Data2
> Data9
> Error1
> Error5
> )
>
> If this can't be done per connection, what would be the best
> way to modify a SQL to sort this way?
>
> --
> Andreas
> if ((sex==fem)&&(hobby==comp)&&(age~25)&&(status==single)
> &&(cntry=GER)) goto http://www.kochandreas.com/home/single.htm
>
Received on Thu Apr 25 2002 - 20:38:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US