Re: Is this doable using Postgresql crosstab or some other function?

From: David Johnston <polobo(at)yahoo(dot)com>
To: "<mika(at)digikartta(dot)net>" <mika(at)digikartta(dot)net>
Cc: "<pgsql-general(at)postgresql(dot)org>" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is this doable using Postgresql crosstab or some other function?
Date: 2012-04-10 09:19:14
Message-ID: 9792E814-C3EB-44D4-A3CB-3E5DE5368B52@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Apr 10, 2012, at 1:52, <mika(at)digikartta(dot)net> wrote:

>
> Quite challanging, right?
>

Aside from the possibly extremely rare case where this is actually functional the only challenging task is to tell off whomever gave you the idea/requirement that your schema is desirable - even if that person is yourself.

That aside, judicious use of CASE constructs, and probably UNION, will get you your answers. Keep in mind that you likely need to end up casting all of your values to varchar/text in the end.

You may also want to look at the HSTORE extension.

Given the generic nature of your inquiry actual specific advice is impossible to give.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message mika 2012-04-10 09:27:20 Re: Is this doable using Postgresql crosstab or some other function?
Previous Message John R Pierce 2012-04-10 08:58:46 Re: Is this doable using Postgresql crosstab or some other function?