how to get nth rows from table
please tell me how to get nth rows from table in sql server 2008
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.
Sibeesh VenuPosted Jun 29, 2015, 7:50 AM
Manoj BhoirPosted Jun 29, 2015, 8:54 AM
SELECT (ROW_NUMBER() OVER (ORDER BY TableColumnName)) as row,*
FROM TableName)
SELECT * FROM myTableWithRows WHERE row = 3
Upendra Pratap ShahiPosted Jun 29, 2015, 8:31 AM
Nilesh JadavPosted Jun 29, 2015, 8:18 AM
Sibeesh VenuPosted Jun 29, 2015, 8:13 AM