Tom Cooper
3/29/2007 2:29:00 AM
select <column list>
from <tablename>
where <datetime column> = (select max(<datetime column>) from <tablename>);
Tom
"Jen" <none@nowhere.com> wrote in message
news:uof81iacHHA.3616@TK2MSFTNGP05.phx.gbl...
> One of the columns in my table is a date/time. What is the query to
> return the most recent record? I would think this should be simple but my
> SQL skills are pretty rusty. Using SQL Server 2000 but would prefer to
> keep it as generic SQL as possible
>
> Thanks.
>