X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D3243D1B946 for ; Tue, 7 Oct 2003 18:37:34 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 71098-01 for ; Tue, 7 Oct 2003 15:36:47 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 13B61D1B56A for ; Tue, 7 Oct 2003 15:36:39 -0300 (ADT) Received: (qmail 14141 invoked by uid 500); 7 Oct 2003 18:44:06 -0000 Date: Tue, 7 Oct 2003 13:44:06 -0500 From: Bruno Wolff III To: teknokrat Cc: pgsql-sql@postgresql.org Subject: Re: row and column transposition Message-ID: <20031007184406.GA14084@wolff.to> Mail-Followup-To: teknokrat , pgsql-sql@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/89 X-Sequence-Number: 15489 On Mon, Oct 06, 2003 at 14:28:39 +0100, teknokrat wrote: > Anyone know some sql that display a row as a set of rows with column > name vs column value? contrib/tablefunc provides a crosstab function that should do what you want.