filtering out doubles with SELECT - Mailing list pgsql-novice

From Jules Alberts
Subject filtering out doubles with SELECT
Date
Msg-id 20030312100811.8F5171CB1A5@koshin.dsl.systemec.nl
Whole thread Raw
Responses Re: filtering out doubles with SELECT
List pgsql-novice
Hello everyone,

I was wondering how to filter out double values (where "value" spans
two columns COL1 and COL2) with a SELECT statement. If I have this
table:

COL1 |COL2 |COL3
-----------------------------
a    |b    |some value
a    |b    |another value
a    |c    |yet another value

what would be the select statement to get this result:

COL1 |COL2 |COL3
-----------------------------
a    |b    |some value
a    |c    |yet another value

I was thinking that DISTINCT would do this, but I don't want to loose
COL3. TIA for any tips!

pgsql-novice by date:

Previous
From: "BERG Thomas"
Date:
Subject: Re: SERIAL does not ROLLBACK
Next
From: "Jules Alberts"
Date:
Subject: Re: filtering out doubles with SELECT