Most suitable answer I have seen on this article for sql server
WITH myTableWithRows AS ( SELECT (ROW_NUMBER() OVER (ORDER BY myTable.SomeField)) as row,* FROM myTable)SELECT * FROM myTableWithRows WHERE row = 3
Most suitable answer I have seen on this article for sql server
WITH myTableWithRows AS ( SELECT (ROW_NUMBER() OVER (ORDER BY myTable.SomeField)) as row,* FROM myTable)SELECT * FROM myTableWithRows WHERE row = 3