From: Ashish Karalkar <ashish_postgre@yahoo.co.in>
To: pgsql-general@postgresql.org
To: ashish.karalkar@netcore.co.in
Subject: SQL Query
Date: Wed, 5 Dec 2007 10:24:04 +0000 (GMT)
Message-ID: <843803.85383.qm@web94301.mail.in2.yahoo.com> (raw)
Hello List member,
Iha a table containing two columns x and y . for single value of x there are multiple values in y e.g
X Y
------------
1 ABC
2 PQR
3 XYZ
4 LMN
1 LMN
2 XYZ
I want a query that will give me following output
1 ABC:LMN
2 PQR:XYZ
3 XYZ
4 LMN
Any help will be really helpful
Thanks in advance
With Regards
Ashish
---------------------------------
Why delete messages? Unlimited storage is just a click away.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ashish_postgre@yahoo.co.in, ashish.karalkar@netcore.co.in
Subject: Re: SQL Query
In-Reply-To: <843803.85383.qm@web94301.mail.in2.yahoo.com>
References: <843803.85383.qm@web94301.mail.in2.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox