Re: Concatenating string fields with GROUP BY clause

Поиск
Список
Период
Сортировка
От Godshall Michael
Тема Re: Concatenating string fields with GROUP BY clause
Дата
Msg-id A596FA3368757645AF862C701495CA0001B4453B@hor1mspmx01.gmachs.com
обсуждение исходный текст
Ответ на Concatenating string fields with GROUP BY clause  ("Brian G. Huber" <brianghuber@yahoo.com>)
Список pgsql-novice
Concatenate is done with  ||   in postgresql
-----Original Message-----
From: Brian G. Huber [mailto:brianghuber@yahoo.com]
Sent: Tuesday, September 09, 2003 12:02 PM
To: pgsql-novice@postgresql.org
Subject: [NOVICE] Concatenating string fields with GROUP BY clause

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 по дате отправления:

Предыдущее
От: Jason Hihn
Дата:
Сообщение: Re: Modifying pg_shadow?
Следующее
От: Jason Hihn
Дата:
Сообщение: Re: Concatenating string fields with GROUP BY clause