Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 479

MSSQL 2008 R2 Selecting rows withing certain range - Paging - What is the best way

$
0
0

Currently this sql query is able to select between the rows i have determined. But are there any better approach for this ?

  select * from (select *, ROW_NUMBER() over (order by Id desc) as RowId                  from tblUsersMessages ) dt  where RowId between 10 and 25

Viewing all articles
Browse latest Browse all 479


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>