select distinct

From: newsreader(at)mediaone(dot)net
To: pgsql-general(at)postgresql(dot)org
Subject: select distinct
Date: 2001-08-13 00:39:35
Message-ID: 20010812203935.A29686@dragon.universe
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message newsreader 2001-08-13 00:43:33 Re: select distinct
Previous Message Digital Wokan 2001-08-12 21:56:25 Re: Enterprise Manager Client Software project