Re: transposing data for a view - Mailing list pgsql-sql

From Jeff Eckermann
Subject Re: transposing data for a view
Date
Msg-id 20011101162205.3088.qmail@web20807.mail.yahoo.com
Whole thread Raw
In response to Re: transposing data for a view  ("Josh Berkus" <josh@agliodbs.com>)
Responses Re: transposing data for a view  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
Josh,
I don't see how you got the result you quote below. 
My query sums the volume figures, grouping by scanid:
that worked as expected (one line per scanid) on my
system when I tested it (version 7.1.2, though I don't
think that matters).
Jeff

--- Josh Berkus <josh@agliodbs.com> wrote:

> Of couse, it's only *half* a solution.  Your query
> will result in:
> 
> scanid    A_volume  B_volume  C_volume
> 1    34.5                
> 1          55.1        
> 1                12.3
> 2    11.1                
> etc.
> 



__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


pgsql-sql by date:

Previous
From: Jeff Eckermann
Date:
Subject: Re: transposing data for a view
Next
From: Stephan Szabo
Date:
Subject: Re: View consistency