filtering out doubles with SELECT

Поиск
Список
Период
Сортировка
От Jules Alberts
Тема filtering out doubles with SELECT
Дата
Msg-id 20030312100811.8F5171CB1A5@koshin.dsl.systemec.nl
обсуждение исходный текст
Ответы Re: filtering out doubles with SELECT  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
Список 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 по дате отправления:

Предыдущее
От: "BERG Thomas"
Дата:
Сообщение: Re: SERIAL does not ROLLBACK
Следующее
От: "Jules Alberts"
Дата:
Сообщение: Re: filtering out doubles with SELECT