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

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle 8.1.7 sort order

Re: Oracle 8.1.7 sort order

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Tue, 6 Aug 2002 14:24:45 +0100
Message-ID: <3d4fce1d$0$236$ed9e5944@reading.news.pipex.net>


"Jukka Peltonen" <jukka.peltonen_at_helsoft.fi> wrote in message news:1028632504.672626_at_ns2...
> Hello, I hope someone can explain this to me ....
> select nimikekoodi from nimike where nimikekoodi < 'N50295X350'

> 2nd clause:
> select nimikekoodi from nimike order by nimikekoodi

> '// KALV 80'
> ....
> 'N50295X350'
> ....
> 9,964VKI
>
> I think this is NOT a correct result.

The first query returns the results in an essentially unsorted order (though there may well be an indexed access path that is giving the impression of order. Your second query returns the data ordered correctly as per your query.

--
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer

******************************************
Received on Tue Aug 06 2002 - 08:24:45 CDT

Original text of this message

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