(un)grouping question - Mailing list pgsql-general

From Rhys Stewart
Subject (un)grouping question
Date
Msg-id 189966030801210936r7a632af7lf85bfd4a1b74eb21@mail.gmail.com
Whole thread Raw
Responses Re: (un)grouping question
Re: (un)grouping question
Re: (un)grouping question
List 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

pgsql-general by date:

Previous
From: Christian Schröder
Date:
Subject: Re: Views and permissions
Next
From: Tom Lane
Date:
Subject: Re: Views and permissions