SQL Query - Mailing list pgsql-general

From Ashish Karalkar
Subject SQL Query
Date
Msg-id 843803.85383.qm@web94301.mail.in2.yahoo.com
Whole thread Raw
Responses Re: SQL Query
Re: SQL Query
List pgsql-general
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.

pgsql-general by date:

Previous
From: Tomas
Date:
Subject: Re: pg_dump: could not format inet value
Next
From: "A. Kretschmer"
Date:
Subject: Re: SQL Query