| От | Richard Huxton |
|---|---|
| Тема | Re: How to write an query to get this result? |
| Дата | |
| Msg-id | 200305020948.36607.dev@archonet.com обсуждение исходный текст |
| Ответ на | How to write an query to get this result? ("Daniel Dunajsky" <daniel@dunajsky.com>) |
| Список | pgsql-sql |
On Thursday 01 May 2003 4:07 am, Daniel Dunajsky wrote: > 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. There are some crosstab-style functions in the contrib directory in source. Can't remember where, sorry. Look for something like "cross-tab" or try the table-function examples. -- Richard Huxton
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера