| От | Richard Huxton |
|---|---|
| Тема | Re: Selecting rows as if they were columns? |
| Дата | |
| Msg-id | 200310091857.37460.dev@archonet.com обсуждение исходный текст |
| Ответ на | Re: Selecting rows as if they were columns? (Josh Berkus <josh@agliodbs.com>) |
| Список | pgsql-sql |
On Thursday 09 October 2003 18:14, Josh Berkus wrote: > Kurt, > > > I've got what I think should be a pretty simple problem- I just can't > > figure out how I'd do it. Heck, I can't even figure out how I'd search > > for an answer to this problem. > > This is an old common SQL problem ... the "crosstab" table. There are 3 > standard ways to solve it, depending on the exact circumstances of your > case. It's probably best if you buy Joe Celko's "SQL for Smarties, 2nd > Ed.", which has a 50-page chapter on the topic and explores the methods in > detail. Or see the contrib/tablefunc functions which can do this sort of thing for you. -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера