Re: problem query ... - Mailing list pgsql-novice

From John Taylor
Subject Re: problem query ...
Date
Msg-id 02013117472107.01674@splash.hq.jtresponse.co.uk
Whole thread Raw
In response to Re: problem query ...  (Frank Bax <fbax@sympatico.ca>)
Responses Re: problem query ...
List pgsql-novice
On Thursday 31 January 2002 17:35, Frank Bax wrote:
> select mytable.* from mytable, (select id,max(update) as update from
> mytable group by id) maxes where mytable.id = maxes.id and mytable.update =
> maxes.update;
>

I didn't think of putting the subselect there, I was trying in the where clause.
However, I think using distinct on is probably going to run faster.

Thanks
JohnT

pgsql-novice by date:

Previous
From: Frank Bax
Date:
Subject: Re: problem query ...
Next
From: "Sammer Reinhard J."
Date:
Subject: Re: column headers all in upper-case letters?