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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: [Help] How to sort like this with SQL?

Re: [Help] How to sort like this with SQL?

From: NEON Systems <neon_at_BGA.COM>
Date: Sun, 21 Jan 1996 20:58:32 -0600
Message-Id: <9601220304.AA30596@alice.jcc.com>


>
> SELECT Work_Item
> FROM Work_Table
> ORDER BY Work_Item;
> ...
> 1
> 1.1
> 1.2
> 1.3
> 1.4
> 1.5
> 1.10
> 1.11
> 1.12
> ...
>
> How can I get this result? Please be help!

How about this:

select trunc(Work_Item) || (Work_Item - trunc(Work_Item)) "Work_Item" from Work_Table
order by 1;

> Thanks in advance.

Hope that helps.

Omri. Received on Sun Jan 21 1996 - 22:04:28 CST

Original text of this message

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