select distinct

Поиск
Список
Период
Сортировка
От newsreader@mediaone.net
Тема select distinct
Дата
Msg-id 20010812203935.A29686@dragon.universe
обсуждение исходный текст
Ответы Re: select distinct  (newsreader@mediaone.net)
Список pgsql-general
It seems that I cannot get other columns
with distinct in the select statement.

I want to do like
    select distinct i,a from a where c=2;

Right now I have to do
    select distinct i from a where c=2
and then iterate over each i to get a

I have also tried
    select a,distinct i from a where c=2

I would appreciate any suggestion

Thanks


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgresQL setup in hosted environment
Следующее
От: newsreader@mediaone.net
Дата:
Сообщение: Re: select distinct