Last active
January 4, 2016 06:09
-
-
Save kgundula/8579904 to your computer and use it in GitHub Desktop.
MSSQL equivalent MySQL query with limit clause
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
SELECT * FROM | |
( | |
SELECT TOP 30 *, ROW_NUMBER() OVER (ORDER BY (SELECT 1)) AS rnum | |
FROM table1 | |
) a | |
WHERE rnum > 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment