From: Maxim Maletsky <maxim@japaninc.com>
To: 'herve@elma.fr' <herve@elma.fr>
To: pgsql-sql@postgresql.org
Subject: RE: Order by email address by domain ?
Date: Fri, 11 May 2001 16:45:26 +0900
Message-ID: <DC017B079D81D411998C009027B7112A015ED1A8@EXC-TYO-01> (raw)
here's an idea:
if you would have all emails stored in the reverse order:
moc.niamod@resu
then all you would need is simple 'ORDER BY email'.
Also, in this way, emails like user@subdomain.domain.com would be perfectly
ordered.
Is that a crazy thought?
If not yet then: why not to add an additional field to the table with the
reverse domain only? (after an @) ordering by it. INDEX would also be
simple.
now is crazy? Then, is there any such function in PostgreSQL? With C it
would be so easy and fast.
Cheers!
Maxim Maletsky
-----Original Message-----
From: Hervé Piedvache [mailto:herve@elma.fr]
Sent: Friday, May 11, 2001 3:38 AM
To: pgsql-sql@postgresql.org
Subject: [SQL] Order by email address by domain ?
Hi,
I just want to order by a listing of email address by domain like :
toto@aol.com
tutu@aol.com
toto@be.com
tutu@be.com
toto@yahoo.com
Is it possible and how ?
Thanks !
--
Hervé Piedvache
Elma Ingenierie Informatique
6, rue du Faubourg Saint-Honoré
F-75008 - Paris - France
http://www.elma.fr
Tel: +33-1-44949901
Fax: +33-1-44949902
Email: herve@elma.fr
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://www.postgresql.org/search.mpl
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: maxim@japaninc.com, herve@elma.fr
Subject: Re: Order by email address by domain ?
In-Reply-To: <DC017B079D81D411998C009027B7112A015ED1A8@EXC-TYO-01>
References: <DC017B079D81D411998C009027B7112A015ED1A8@EXC-TYO-01>
* 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