Re: newbie question for return date - Mailing list pgsql-general

From Lee Harr
Subject Re: newbie question for return date
Date
Msg-id apkm43$8j$1@news.hub.org
Whole thread Raw
List pgsql-general
In article <xEgv9.2668$h_4.374526@news20.bellglobal.com>, tviardot wrote:
> Hi guys, here a newbies question.
> I've made a table with some action and date.
> How may i query the most recent date. (I'd like to return only the record
> which have the most recent date ).
> Tx
>
>

How about:

SELECT * FROM t ORDER BY d DESC LIMIT 1;


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: VACUUM FULL not working with persistent connections in
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Formatting query output