join with an array - Mailing list pgsql-sql

From Louis-David Mitterrand
Subject join with an array
Date
Msg-id 20100224124023.GA16500@apartia.fr
Whole thread Raw
Responses Re: join with an array  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-sql
Hi,

I'm trying the following query:
select array_agg(t1.id) from table1 t1 join table2 t2 on (t2.id = any(array_agg)) group by t1.col1;

but I get this error: ERROR:  column "array_agg" does not exist

I tried aliasing array_agg(t1.id) without success.

Thanks for any suggestions,


pgsql-sql by date:

Previous
From: Gary Chambers
Date:
Subject: Re: Join Advice and Assistance
Next
From: "A. Kretschmer"
Date:
Subject: Re: join with an array