Re: exporting join results - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: exporting join results
Date
Msg-id 20030529171757.GA15305@wolff.to
Whole thread Raw
In response to exporting join results  (Roy Cabaniss <rcaban@cabanisspc.uamont.edu>)
List pgsql-general
On Thu, May 29, 2003 at 10:54:37 -0500,
  Roy Cabaniss <rcaban@cabanisspc.uamont.edu> wrote:
> I have some tables that I am gathering data in.  Some of the data
> gathered goes into personal table and the survey results goes into the
> survey table.
>
> I can do a join with no problem to see my results with something like:
>
> select * from personal,survey WHERE personal.pid=survey.pid;
>
> I can do a dump of either table again with no problem.
>
> What I want is to get a dump of the join as a comma separated text file
> so that I can import it into my statistical software.
>
> Any ideas on how to do it?

You can concatenate the columns you want with commas and quotes as
necessary. Also you should use coalesce to handle any null values.

pgsql-general by date:

Previous
From: Network Administrator
Date:
Subject: Re: Blocking access to the database??
Next
From: Diogo de Oliveira Biazus
Date:
Subject: PostgreSQL brazilian community meeting on International Open Source Software Forum