SyntaxFix
Write A Post
Hire A Developer
Questions
Try with this
SELECT top 1 id, Col2, row_number() over (order by id desc) FROM Table