pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: lynch@lscorp.com
To: pgsql-sql@postgresql.org
Subject: A, An, and The, out of Alphabetical order
Date: Sat, 4 Jul 1998 23:21:23 -0500
Message-ID: <v02140b09b1c466b85629@[207.152.64.133]> (raw)

I probably need a whole new column for alphabetical ordering, but...

I want something like this for now (I think):

select band, ltrim(band, 'THE ') as alpha from bands order by alpha;

except I only want a match on 'THE ', not any any character within it,
which is what ltrim does...

Is there something like what I want that's easy to do?
[If it's way hard, I'll just add a column.]

--
--
-- "TANSTAAFL" Rich lynch@lscorp.com





Message-ID: <v02140b09b1c466b85629@[207.152.64.133]>
Permalink:  ../v02140b09b1c466b85629@%5B207.152.64.133%5D/
Also on:    postgresql.org/message-id/v02140b09b1c466b85629@[207.152.64.133]

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: lynch@lscorp.com
  Subject: Re: A, An, and The, out of Alphabetical order
  In-Reply-To: <v02140b09b1c466b85629@[207.152.64.133]>
  References: <v02140b09b1c466b85629@[207.152.64.133]>

* 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