From: spam@freeuk.com
To: pgsql-sql@postgresql.org
Subject: case insensitive sort for output from SELECT
Date: Wed, 16 May 2001 19:21:22 BST
Message-ID: <slrn9g5gva.9il.spam@localhost.localdomain> (raw)
Is there any way to alphabetically sort the output of a select
statement correctly?
what I'm using at the moment is
SELECT data FROM table ORDER BY DATA ASC
which gives (for example)
A
B
C
a
b
Is there any way to rig this so that it sorts 'properly', i.e. both
the a's come together?
Given what I'm working on, I could use either a pure SQL solution or
some perl to put around the perl DBI.
--
It's a great big universe and we're all really puny, just tiny little specks
'bout the size of Mickey Rooney -- Animaniacs
-- -- -- -- -- -- -- -- -- --
Stephen Patterson s.patterson@SPAMOFFfreeuk.com (Remove SPAMOFF to reply)
http://home.freeuk.net/s.patterson/
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: spam@freeuk.com
Subject: Re: case insensitive sort for output from SELECT
In-Reply-To: <slrn9g5gva.9il.spam@localhost.localdomain>
* 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