From: Jodi Kanter <jkanter@virginia.edu>
To: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: query
Date: Fri, 15 Nov 2002 15:47:50 -0500
Message-ID: <00cd01c28ce8$433dcc60$de138f80@virginia.edu> (raw)
I have a query that pulls two fields across three tables such that the results are in two columns:
layout.probe spot.signal
value1 some value
value2 some value
value3 some value
value1 some value
value2 some value
value3 some value
I have three tables: spot, measurement, layout. The measurement table exists in the query because it sits between the spot and layout tables which hold the data that I want.
My goal is to produce a report that lists the signal values in separate columns (instead of having the probe value repeat) such that the results look like this:
layout.probe signal signal
value1 some value some value
value2 some value some value
value3 some value some value
What is the most efficient way to do this? I assume it would require placing the data in temporary tables? Is there some complicate query design that could handle this?
Please contact me if my description is not clear.
Thank you
Jodi
_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: jkanter@virginia.edu
Subject: Re: query
In-Reply-To: <00cd01c28ce8$433dcc60$de138f80@virginia.edu>
* 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