From: | Sergey Konoplev <gray(dot)ru(at)gmail(dot)com> |
---|---|
To: | Larry Rosenman <ler(at)lerctr(dot)org> |
Cc: | Adam Jelinek <ajelinek(at)gmail(dot)com>, pgsql-sql <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Can I simplify this somehow? |
Date: | 2013-09-27 23:12:26 |
Message-ID: | CAL_0b1uE8sUaKSqXra+3Wthdnkm5iJRJYC3e2pQ9xPC3SBoqhA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Fri, Sep 27, 2013 at 12:32 PM, Larry Rosenman <ler(at)lerctr(dot)org> wrote:
> On 2013-09-27 14:24, Adam Jelinek wrote:
>> TIME MON TUE WED ...
>> 09:00 1 3 4
>> 10:00 5 0 8
>>
> That would be cool, but just a list is good too.....
You need to take a look at this module:
http://www.postgresql.org/docs/9.3/static/tablefunc.html
Particularly look at the crostab(text, text) function.
--
Kind regards,
Sergey Konoplev
PostgreSQL Consultant and DBA
http://www.linkedin.com/in/grayhemp
+1 (415) 867-9984, +7 (901) 903-0499, +7 (988) 888-1979
gray(dot)ru(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | hugh holston | 2013-09-30 23:20:05 | openclinica |
Previous Message | jonathansfl | 2013-09-27 21:02:28 | Re: postgres subfunction return error |