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: sort/select discrepancy with umlaut Oracle 7

Re: sort/select discrepancy with umlaut Oracle 7

From: Thomas Noone <cash_at_cash-gmbh.de>
Date: Sat, 23 Jun 2001 15:04:34 +0200
Message-ID: <3b3493cc_2@news.ecore.net>

Thanks Lothar,

I'll give it a try.

Thomas

Lothar Armbrüster <la_at_oktagramm.de> schrieb in im Newsbeitrag: PM00038744372319BE_at_hades.unknown.dom...
> Thomas Noone wrote:
> >

 [...]
> >
> > Using "select company from adresses where company >= 'K' order by
> > company",
> > lists companies starting with umlaut A (ae) followed by companies
> > starting
> > with K or larger.
> >
> > How can I get Oracle to select as it sorts? That is, if Ae is sorted
> > before
> > K, do the same with select and NOT select Ae?
> >
> Hello Thomas,
> try this:
>
> select company from adresses where nlssort(company)>=nlssort('K');
>
> You might consider creating a function based index on nlssort(company)
> if this kind of query occurs more often...
>
> Hope that helps,
> Lothar
>
> --
> Lothar Armbrüster | la_at_oktagramm.de
> Hauptstr. 26 | la_at_heptagramm.de
> D-65346 Eltville | lothar.armbruester_at_t-online.de
Received on Sat Jun 23 2001 - 08:04:34 CDT

Original text of this message

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