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

last record

Status
Not open for further replies.

chaoma

Technical User
Apr 17, 2005
101
US
Does any one know how to get the very last record from the table? Table is not sorted.

Thank you for your assistance.
chaoma
 
Add an autoincrement field to the table (call it ID or something). Then :

SELECT TOP 1 * FROM Table order by ID desc

Bob

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top