A, An, and The, out of Alphabetical order

From: lynch(at)lscorp(dot)com (Richard Lynch)
To: pgsql-sql(at)postgresql(dot)org
Subject: A, An, and The, out of Alphabetical order
Date: 1998-07-05 04:21:23
Message-ID: v02140b09b1c466b85629@[207.152.64.133]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)lscorp(dot)com

Browse pgsql-sql by date

  From Date Subject
Next Message Peter T Mount 1998-07-05 10:13:50 Re: [INTERFACES] select w/Swing's JTable widget
Previous Message Ludovic Marcotte 1998-07-04 18:58:36 select w/Swing's JTable widget