Last N records from a Table in SQL
How to select last N records from a Table ?
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.
Vithal WadjePosted Nov 23, 2012, 6:36 AM
Krishna GaradPosted Nov 23, 2012, 6:26 AM
Select Top 10 * From TableName order by Id Desc
Else
Take a look here
Shankar MPosted Nov 23, 2012, 6:25 AM
Use the Order by Clause in your Query.
Something like this,
SELECT TOP N * FROM EMP ORDER BY EMPNO DESC
Thanks,
Shankar