Re: Sorting on a partial email address
- From: pdalec@xxxxxxxxx (pDale)
- Date: Mon, 18 Jul 2005 19:17:02 -0400
On 7/18/05, Robert <catcher@xxxxxxxxxxxxx> wrote:
> I am pulling out users (name + email) and I need to sort the list by
> everything after the @ sign in the email address. I wasn't sure which group
> to post to.
>
> I am pulling them into an excel spread*** from Oracle. I wasn't sure at
> what point the sort should happen (except sometime before it writes to the
> xls). : )
How about:
SELECT eaddr
FROM db
ORDER BY substr( eaddr, instr( eaddr, '@')+1);
--
HTH
pDale
.
- Follow-Ups:
- Re: Sorting on a partial email address
- From: Robert
- Re: Sorting on a partial email address
- References:
- Sorting on a partial email address
- From: Robert
- Sorting on a partial email address
- Prev by Date: Re: Sorting on a partial email address - Oracle to Excel (but where is Perl involved?)
- Next by Date: Re: [Fwd: Problems installing DBD::mysql]
- Previous by thread: Re: Sorting on a partial email address - Oracle to Excel (but where is Perl involved?)
- Next by thread: Re: Sorting on a partial email address
- Index(es):