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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

latest datetime SQL

Status
Not open for further replies.

kingz2000

Programmer
May 28, 2002
304
DE

Hi people,

I'm trying to get an SQL for the latest datetime in this table..so hence I want ID=3 to be given.PLEASE HELP!!

ID DATE TIME
1 1.1.07 5:00
2 2.1.07 6:30
3 2.1.07 7:00

 
A starting point (SQL code):
SELECT Max([DATE]+[TIME]) FROM yourTable

Anyway, why TWO fields for a SINGLE DateTime value ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top