Re: OT: seeking query help, where? - Mailing list pgsql-admin

From Nigel J. Andrews
Subject Re: OT: seeking query help, where?
Date
Msg-id Pine.LNX.4.21.0301170022320.17547-100000@ponder.fairway2k.co.uk
Whole thread Raw
In response to OT: seeking query help, where?  ("Tim Lynch" <admin+pgsqladmin@thirdage.com>)
List pgsql-admin
On Thu, 16 Jan 2003, Tim Lynch wrote:

> First, sorry for the OT, flame me off-list!
>
> I'm a sysadmin being impressed into dba service. i've been getting along
> pretty well writing queries and making reports, but i've got some questions.
> suggestions for a good list/forum for help?
>
> from two tables both with email_addr columns, i want a distinct list of all
> email_addrs in one column. what i do now is select distinct on each and then
> sort -u the results.
>

I like it! My sort of solution. Only I don't know the -u switch, I'd have done
`cat blah* | sort | uniq` but it's obviously the same idea.

As for the query that would do it, I believe that's already been answered I
just thought I'd stand up for the good old fashioned unix ways. :)


--
Nigel J. Andrews


pgsql-admin by date:

Previous
From: "Sharanayya G M"
Date:
Subject:
Next
From: "Tim Lynch"
Date:
Subject: Re: OT: seeking query help, where?