X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DE7FE475F16 for ; Wed, 30 Apr 2003 23:37:28 -0400 (EDT) Received: from priv-edtnes28.telusplanet.net (outbound04.telus.net [199.185.220.223]) by postgresql.org (Postfix) with ESMTP id 0F99D475E9D for ; Wed, 30 Apr 2003 23:37:28 -0400 (EDT) Received: from akssk ([137.186.229.180]) by priv-edtnes28.telusplanet.net (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with SMTP id <20030501033732.SQPE4735.priv-edtnes28.telusplanet.net@akssk> for ; Wed, 30 Apr 2003 21:37:32 -0600 Message-ID: <020601c30f92$22174ca0$0300a8c0@akssk> From: "Daniel" To: Subject: How to write a sql query to get this result? Date: Wed, 30 Apr 2003 21:31:20 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Status: No, hits=-1.6 required=5.0 tests=BAYES_30 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/464 X-Sequence-Number: 13165 Hello, Is there any way how to retrieve result normally displayed as: TOTAL 268 Administrator 7 Internet Only 178 Filtered Internet 7 To be like this: TOTAL Administrator Internet Only Filtered Internet 268 7 178 7 That means, the rows of the first column of the first case are headers in the second case. Similarly, the rows of the second column are displayed as one row. Please reply to daniel_katka@hotmail.com Thank you very much. Daniel