(un)grouping question

From: "Rhys Stewart" <rhys(dot)stewart(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: (un)grouping question
Date: 2008-01-21 17:36:56
Message-ID: 189966030801210936r7a632af7lf85bfd4a1b74eb21@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi list,

have the following table

uid|somevalue
--------------------
1|11
2|44
3|31
4|44
5|71
6|33
7|33
8|44
9|14

would like to remove the duplicate values in the column somevalue. doing
this by just adding a random number is perfectly fine, however i want to
retain at least one of the original values of somevalue. Any ideas how to do
this in in a query?

Rhys,

Peace & Love|Live Long & Prosper

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-01-21 17:50:29 Re: Views and permissions
Previous Message Christian Schröder 2008-01-21 17:34:07 Re: Views and permissions