SQL query - single text value from group by

From: mike <mike(at)bristolreccc(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: SQL query - single text value from group by
Date: 2004-09-08 15:45:34
Message-ID: 1094658334.6956.14.camel@datacc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2004-09-08 16:13:02 Re: SQL query - single text value from group by
Previous Message Richard Huxton 2004-09-08 15:39:58 Re: import mysql database...