filtering out doubles - Mailing list pgsql-sql

From Jules Alberts
Subject filtering out doubles
Date
Msg-id 20030312100410.BBFD01CB1A5@koshin.dsl.systemec.nl
Whole thread Raw
Responses Re: filtering out doubles  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-sql
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-sql by date:

Previous
From: "Susan Hoddinott"
Date:
Subject: Create function statement with insert statement
Next
From: Rupa Schomaker
Date:
Subject: Re: Special characters in SQL queries