SQL query - single text value from group by

Поиск
Список
Период
Сортировка
От mike
Тема SQL query - single text value from group by
Дата
Msg-id 1094658334.6956.14.camel@datacc
обсуждение исходный текст
Ответы Re: SQL query - single text value from group by  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Hi

I am trying to work out if this is possible in a select query

I have a group by query which could result in several rows, what I want
to do is do a text equivalent of a sum() eg:

SELECT sum(inv_id),date,cust
from invoice
group by date,cust

Is there any way to get to a single concatenated inv_id field with just
one row?

thanks

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: import mysql database...
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: SQL query - single text value from group by