X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D5CD4D1B4CF for ; Tue, 23 Dec 2003 00:47:20 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 09577-06 for ; Mon, 22 Dec 2003 20:46:33 -0400 (AST) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by svr1.postgresql.org (Postfix) with ESMTP id 82819D1B453 for ; Mon, 22 Dec 2003 20:46:30 -0400 (AST) Received: from [10.0.1.3] grzm@smtp-send.myrealbox.com [68.112.116.204] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.46 $ on Novell NetWare; Mon, 22 Dec 2003 15:32:39 -0700 In-Reply-To: <92D6AAE888CED411A16A00508BB0B8270525489E@ecntex.ENERGY.ad.intra> References: <92D6AAE888CED411A16A00508BB0B8270525489E@ecntex.ENERGY.ad.intra> Mime-Version: 1.0 (Apple Message framework v609) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: "'pgsql-sql@postgresql.org'" From: Michael Glaesemann Subject: Re: Crosstable query Date: Mon, 22 Dec 2003 16:32:32 -0600 To: "Dok, D. van" X-Mailer: Apple Mail (2.609) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/159 X-Sequence-Number: 16325 On Dec 19, 2003, at 8:41 AM, Dok, D. van wrote: > MS Access has a 'TRANSFORM' function to do this, which transposes the > data > along a pivot. You'll probably want to look at Joe Conway's tablefunc. It's in contrib. It's included in 7.4; I'm not sure about 7.3.4, but you can add it if it's not. Hope this helps. Michael Glaesemann grzm myrealbox com