SyntaxFix
Write A Post
Hire A Developer
Questions
No need of row number functions if field ID is unique.
SELECT TOP 1 * FROM ( SELECT TOP 2 * FROM yourTable ORDER BY ID ) z ORDER BY ID DESC