Re: newbie question for return date

From: Lee Harr <missive(at)frontiernet(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: newbie question for return date
Date: 2002-10-29 00:52:19
Message-ID: apkm43$8j$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In article <xEgv9(dot)2668$h_4(dot)374526(at)news20(dot)bellglobal(dot)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;

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Medi Montaseri 2002-10-29 01:12:42 Re: newbie question for return date
Previous Message Martijn van Oosterhout 2002-10-29 00:50:14 Re: Formatting query output