Re: Concatenating string fields with GROUP BY clause

Поиск
Список
Период
Сортировка
От Jason Hihn
Тема Re: Concatenating string fields with GROUP BY clause
Дата
Msg-id NGBBLHANMLKMHPDGJGAPGENFCMAA.jhihn@paytimepayroll.com
обсуждение исходный текст
Ответ на Concatenating string fields with GROUP BY clause  ("Brian G. Huber" <brianghuber@yahoo.com>)
Список pgsql-novice
Section 6.4
 
string || string
String concatenation 'Post' || 'greSQL' = PostgreSQL
 
-----Original Message-----
From: pgsql-novice-owner@postgresql.org [mailto:pgsql-novice-owner@postgresql.org]On Behalf Of Brian G. Huber
Sent: Tuesday, September 09, 2003 1: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 по дате отправления:

Предыдущее
От: Godshall Michael
Дата:
Сообщение: Re: Concatenating string fields with GROUP BY clause
Следующее
От: "Brian G. Huber"
Дата:
Сообщение: Re: Concatenating string fields with GROUP BY clause