| От | Ludwig Isaac Lim |
|---|---|
| Тема | Re: Ordering of records in group by not possible |
| Дата | |
| Msg-id | 20060426151910.84712.qmail@web33111.mail.mud.yahoo.com обсуждение |
| Ответ на | Re: Ordering of records in group by not possible (Alban Hertroys <alban@magproductions.nl>) |
| Ответы |
Re: Ordering of records in group by not possible
|
| Список | pgsql-general |
Hi: > You could order by "column 2" if you want to order on the > results on > your aggregate: > Select a, aggregate(b) > from c > group by a > order by a,2 > another alternative is : select a , aggregrate(b) as <alias> from c group by a order by a, <alias> e.g. select a,sum(b) as sum_b from c group by a order by a, sum_b ludwig lim __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера