Re: Can this be done in one query? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Can this be done in one query?
Date
Msg-id 20020507154610.R79337-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Can this be done in one query?  (Randall Perry <rgp@systame.com>)
Responses Re: Can this be done in one query?
Re: Can this be done in one query?
List pgsql-general
On Tue, 7 May 2002, Randall Perry wrote:

> With the following:
>
>     select max(date) from log order by date_time desc limit 12;
>
> The limit clause has no effect on the results; it'll get the latest date
> from the entire record set rather than from the last 12 records.

Maybe something like:
select max(date) from (select date from log order by date_time desc limit
12) c;


pgsql-general by date:

Previous
From: "Samuel J. Sutjiono"
Date:
Subject: Performance issues with compaq server
Next
From: Steve Lane
Date:
Subject: Re: Subject: bool / vacuum full bug followup part 2