Simulate a (mysql)LIMIT on "MS SQLserver"
select * from ( select top 5 * from (select top 8000 * from TABLE order by 1 asc) as tbl1 order by 1 desc ) as tbl2 order by 1 asc
DZone Snippets > manatlan > mssqlserver
12117 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
manatlan http://manatlan.online.fr
select * from ( select top 5 * from (select top 8000 * from TABLE order by 1 asc) as tbl1 order by 1 desc ) as tbl2 order by 1 asc