From: | "Ozer, Pam" <pozer(at)automotive(dot)com> |
---|---|
To: | "Ozer, Pam" <pozer(at)automotive(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Need to return one field for multiple Rows |
Date: | 2011-07-21 23:28:46 |
Message-ID: | 216FFB77CBFAEE4B8EE4DF0A939FF1D14F87D7@mail-001.corp.automotive.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Never Mind Ifigured it out. I just need to use agg_array
From: Ozer, Pam
Sent: Thursday, July 21, 2011 4:09 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: Need to return one field for multiple Rows
I have the following query
Select PubArticleId, PubArticlePageXML
from PubarticlePageXml x
Inner Join Pubarticlepage p on x.pubarticlepageid=p.pubarticlepageid
where pubarticleid=188321
Which Returns
PubArticleId(Integer) PubArticlePageXML(Text)
188321 fdfaldkjf
188321 afdaf
188321 adfafd
188321 afddfadfa
I want it to return one row
188321 fdfaldkjf afdaf adfafd afddfadfa
Any thoughts On how I can do this?
Thanks
Pam Ozer
From | Date | Subject | |
---|---|---|---|
Next Message | James Kitambara | 2011-07-22 08:04:45 | |
Previous Message | Ozer, Pam | 2011-07-21 23:09:28 | Need to return one field for multiple Rows |