Find last Record in sql table
How to Find Last Record in SQLtable without using Top and max
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Dec 9, 2014, 8:43 AM
In SQL Server you do what Vikram described.
If you're using MS Access, MySQL or Oracle, you can use the approaches described here:
http://www.w3schools.com/sql/sql_func_last.asp
Mukesh Kumar TiwariPosted Dec 9, 2014, 8:40 AM
Vikram AgrawalPosted Dec 9, 2014, 8:37 AM
you can find last row like this without using top/max
set rowcount 1
Select * From MyTable Order By Id Desc