Re: Select the most recent date
From: Steve Kass (skass_at_drew.edu)
Date: 04/26/04
- Next message: Aaron Bertrand [MVP]: "Re: Select the most recent date"
- Previous message: vishal subramaniam: "RE: Any good T-SQL quick reference recommended?"
- In reply to: Aaron Bertrand [MVP]: "Re: Select the most recent date"
- Next in thread: Aaron Bertrand [MVP]: "Re: Select the most recent date"
- Reply: Aaron Bertrand [MVP]: "Re: Select the most recent date"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 26 Apr 2004 02:27:34 -0400
SELECT TOP 1 WITH TIES <column list> ... ?
SK
Aaron Bertrand [MVP] wrote:
>SELECT TOP 1 <column list> FROM table
> ORDER BY <date column name> DESC
>
>(Also, get ready for Celko to pounce for calling them records, not rows, and
>fields, not columns.)
>
>
>
- Next message: Aaron Bertrand [MVP]: "Re: Select the most recent date"
- Previous message: vishal subramaniam: "RE: Any good T-SQL quick reference recommended?"
- In reply to: Aaron Bertrand [MVP]: "Re: Select the most recent date"
- Next in thread: Aaron Bertrand [MVP]: "Re: Select the most recent date"
- Reply: Aaron Bertrand [MVP]: "Re: Select the most recent date"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|