How to write an query to get this result?

Поиск
Список
Период
Сортировка
От Daniel Dunajsky
Тема How to write an query to get this result?
Дата
Msg-id 01be01c30f8e$d9cbf160$0300a8c0@akssk
обсуждение исходный текст
Ответы Re: How to write an query to get this result?  (Richard Huxton <dev@archonet.com>)
Список 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@hotmail.com

Thank you very much.

Daniel



В списке pgsql-sql по дате отправления:

Предыдущее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Re: Stored Procedure Question
Следующее
От: "Matt Mello"
Дата:
Сообщение: implied FROM