pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: CROSS-TAB query help? I have read it cant be done in on
Date: Tue, 17 Aug 2004 10:48:37 +0100
Message-ID: <4121D475.3070804@archonet.com> (raw)
In-Reply-To: <82E30406384FFB44AFD1012BAB230B55037D0510@shiva.au.lpint.net>
References: <82E30406384FFB44AFD1012BAB230B55037D0510@shiva.au.lpint.net>

Theo Galanakis wrote:
> Thanks Rickard 
> Max may not work as not all the data is numerical. However I will give the
> contrib/cross-tab a go!

It will work as long as you only have one non-null value per grouped 
field (which you did in your example).

>>|     symbol     | linktype
>>-------------------+------+------+-------------------+-----------+----
>>-------------------+------+------+-------------------+-----------+----
>>-------------------+------+------+-------------------+-----------+--
>>            100473 | 93   |      |                   |           |
>>            100473 |      | 77   |                   |           |
>>            100473 |      |      | text1            |           |


-- 
   Richard Huxton
   Archonet Ltd



view thread (4+ messages)

Message-ID: <4121D475.3070804@archonet.com>
Permalink:  ../4121D475.3070804@archonet.com/
Also on:    postgresql.org/message-id/4121D475.3070804@archonet.com

 · 

reply

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-sql@postgresql.org
  Cc: dev@archonet.com, Theo.Galanakis@lonelyplanet.com.au
  Subject: Re: CROSS-TAB query help? I have read it cant be done in on
  In-Reply-To: <4121D475.3070804@archonet.com>

* 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