X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3CCE2D1DFFE for ; Thu, 19 Feb 2004 17:27: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 48954-02 for ; Thu, 19 Feb 2004 13:27:05 -0400 (AST) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 9D59BD1DA34 for ; Thu, 19 Feb 2004 13:27:04 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1Atrwz-0000qO-0Y; Thu, 19 Feb 2004 17:27:03 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id D6DC215960; Thu, 19 Feb 2004 17:26:50 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 07CE015947; Thu, 19 Feb 2004 17:26:48 +0000 (GMT) From: Richard Huxton To: "Philippe Lang" , Subject: Re: crosstabs Date: Thu, 19 Feb 2004 17:26:48 +0000 User-Agent: KMail/1.5 References: <6C0CF58A187DA5479245E0830AF84F420AFC0E@poweredge.attiksystem.ch> In-Reply-To: <6C0CF58A187DA5479245E0830AF84F420AFC0E@poweredge.attiksystem.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200402191726.48545.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/278 X-Sequence-Number: 16968 On Thursday 19 February 2004 16:02, Philippe Lang wrote: > Hello, > > I need to do something similar to a cross tabulation, but without any > aggregation. Have a look in the contrib/ folder of the source distro (or your contrib package). There are some set-returning tablefunc examples. Also you might want to look at the excellent set-returning function article on http://techdocs.postgresql.org/ -- Richard Huxton Archonet Ltd