Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Most recent date

Status
Not open for further replies.

greese

IS-IT--Management
Nov 6, 2003
13
0
0
I have a table of people who move rooms. Every time they change rooms, the room gets updated along with a transfer date.

I am trying make a query that will return only the record with the most recent transfer date.

Can anyone point me in the right direction?

Thanks!

Greg
 
Code:
SELECT TOP 1 * FROM table_name ORDER BY date_column DESC

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Select MAX(Transfer_Date) Last_Transfer
From Rooms_Table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top