X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 5710AD38AD for ; Fri, 11 Jul 2003 09:16:53 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 85796-01 for ; Fri, 11 Jul 2003 06:16:35 -0300 (ADT) Received: from mailav.tor1.inquent.com (mail.inquent.com [216.208.117.106]) by svr1.postgresql.org (Postfix) with ESMTP id ED58BCD3AE for ; Thu, 10 Jul 2003 10:46:49 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mailav.tor1.inquent.com (Postfix) with ESMTP id 6FCFF1024D; Thu, 10 Jul 2003 09:40:20 -0400 (EDT) Received: from [10.0.2.7] (unknown [10.0.2.7]) by mailav.tor1.inquent.com (Postfix) with ESMTP id 692CC10248; Thu, 10 Jul 2003 09:40:18 -0400 (EDT) Subject: Re: help yourself by helping others From: Rod Taylor To: Ali Adams Cc: pgsql-sql@postgresql.org In-Reply-To: <001c01c2fa9b$5b91ec80$03000000@DELLPC> References: <001c01c2fa9b$5b91ec80$03000000@DELLPC> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-bFYUxoltQDRufhFThQFp" Message-Id: <1057844856.46100.134.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 10 Jul 2003 13:47:37 +0000 X-Virus-Scanned: by AMaViS perl-11 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/141 X-Sequence-Number: 14255 --=-bFYUxoltQDRufhFThQFp Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2003-04-04 at 11:10, Ali Adams wrote: > Dear All, >=20=20 > I am new to Relational Databases and SQL and my background in ODBs is > clouding my way to solving what seems to be a simple problem. I am > sure many of you have met it many times. You need to use a pivot table. Specifically, see crosstab() within contrib/tablefunc in the source base. --=-bFYUxoltQDRufhFThQFp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA/DW536DETLow6vwwRAgnQAJ9X3Ds+D9qIvfOxHYdLMKzFaTtOZACggnoJ Ii7xPLwzS049913kMiUhRFs= =APPu -----END PGP SIGNATURE----- --=-bFYUxoltQDRufhFThQFp--