Re: sorting problem

From: Chris Smith <chris(at)interspire(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Jamie Deppeler <jamie(at)doitonce(dot)net(dot)au>, pgsql-general(at)postgresql(dot)org
Subject: Re: sorting problem
Date: 2004-12-17 01:24:29
Message-ID: 41C2354D.4070708@interspire.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Would doing it this way require an index:

create index lower_lastname on table x lower(lastname);

?

Regards,

Chris Smith

Suite 30, 45-51 Huntley St, Alexandria, NSW 2015 Australia

Ph: +61 2 9517 2505
Fx: +61 2 9517 1915

email: info(at)interspire(dot)com
web: www.interspire.com

Michael Fuhr wrote:
> On Fri, Dec 17, 2004 at 11:28:36AM +1100, Jamie Deppeler wrote:
>
>
>>Problem i am having at the moment i cant get a true alpha sort to work
>>as Order By is sorting A..Z then a..z where i need aA..zZ sort
>>independant of case.
>
>
> ORDER BY LOWER(person.lastname)
>
> or
>
> ORDER BY UPPER(person.lastname)
>

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.4 - Release Date: 12/15/2004

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2004-12-17 03:46:46 Re: Non-aggregate values attached to aggregates?
Previous Message Alex 2004-12-17 01:10:25 Re: What HW / OS is recommeded