Created
June 28, 2014 19:40
-
-
Save anova/4074899bc4d8579e9144 to your computer and use it in GitHub Desktop.
MSSQL equivalent to MySql s LIMIT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Thanks to Muharrem Taç - http://www.muharremtac.com | |
SELECT * | |
FROM ( | |
SELECT ROW_NUMBER() OVER(ORDER BY UserId ASC) AS RNumber, * | |
FROM UserDetails | |
) AS [UserDetails] WHERE RNumber BETWEEN 100 AND 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment