Re: Double aggregate problem

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Cc: "David Weilers" <david(at)lionhead(dot)nl>
Subject: Re: Double aggregate problem
Date: 2009-07-22 18:04:34
Message-ID: 200907222104.38931.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wednesday 22 July 2009 19:16:21 David Weilers wrote:
> I have the following query:
>
> select v.id, array_to_string(array_accum(s.name),', ') as sector ,
> array_to_string(array_accum(p.name),', ') as provincie from tblvacature
> v, tblaccount a , tblvacaturesector vs, tblsector s ,
> tblvacatureprovincie vp, tblprovincie p where v.id = 11 and v.account =
> a.id and vs.vacature = v.id and s.id = vs.sector and vp.vacature = v.id
> and p.id = vp.provincie group by v.id, v.inserted order by v.inserted
> desc
>
> That currently produces the following output:

No one is going to be able to reproduce that without the table definitions and
data.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message nha 2009-07-23 01:23:40 Re: Double aggregate problem
Previous Message nha 2009-07-22 17:45:58 Re: Double aggregate problem