How to write an query to get this result?

From: "Daniel Dunajsky" <daniel(at)dunajsky(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: How to write an query to get this result?
Date: 2003-05-01 03:07:50
Message-ID: 01be01c30f8e$d9cbf160$0300a8c0@akssk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)hotmail(dot)com

Thank you very much.

Daniel

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Daniel 2003-05-01 03:31:20 How to write a sql query to get this result?
Previous Message Roberto Mello 2003-05-01 02:16:46 Re: Stored Procedure Question