Concatenating string fields with GROUP BY clause

Поиск
Список
Период
Сортировка
От Brian G. Huber
Тема Concatenating string fields with GROUP BY clause
Дата
Msg-id 001b01c376f4$124dc410$6400a8c0@bghmobile
обсуждение исходный текст
Ответы Re: Concatenating string fields with GROUP BY clause  (Jason Hihn <jhihn@paytimepayroll.com>)
Список pgsql-novice
Hi -
 
I am trying to concatenate a text field in a query with a group by clause, similar to a sum() function on a numeric value - for example:
 
SELECT groupid, sum(numeric_field), ???(text_field) FROM table GROUP BY groupid
 
but I cannot find a function that will concatenate the text fields. Any comments appreciated!
 
TIA,BGH

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Modifying pg_shadow?
Следующее
От: Jason Hihn
Дата:
Сообщение: Re: Modifying pg_shadow?