From: Bob Swerdlow <swerdlow@maine.rr.com>
To: pgsql-sql@postgresql.org
Subject: ORDER BY case insensitive?
Date: Wed, 03 Oct 2001 14:06:39 GMT
Message-ID: <PXEu7.602317$T97.80972819@typhoon.nyroc.rr.com> (raw)
How do I get the rows sorted in a case insensitive way?
I have some queries that basically fit the form:
SELECT * FROM MyTable ORDER BY Name;
When I view the results, all of the Name's that start with an upper case
letter precede all of the Name's that start with a lower case letter. I
want them all in alphabetic order, regardless of case.
I've looked in PostgreSQL Introduction and Concepts by Bruce Momjian and in
the FAQ at http://postgresql.overtone.org/docs/faq-english.html
Thanks for your help.
--
Bob Swerdlow
Chief Operating Officer
Transpose, LLC
rswerdlow@transpose.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: swerdlow@maine.rr.com
Subject: Re: ORDER BY case insensitive?
In-Reply-To: <PXEu7.602317$T97.80972819@typhoon.nyroc.rr.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox