We can select Top 10 or Select Top 'N' row from SQL Server.
But is there any way to skip first row from the result of top??
I mean I get result from select top 5, then I skip the first row and get only next 4 rows?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
OVERclause and a ranking function. You can’t filter on this directly so you need to us a sub query or a common table expression, the example below uses the latter.There will be better support for pagination in the next version of SQL Server (codename Denali) with the
OFFSETandFETCHkeywords.