Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
rudba
Constraint Violating Yak Guru
415 Posts |
Posted - 2011-02-02 : 14:10:02
|
Hello Guys,I have a question, if i have 1000 records in a database. How do i list at a time 200 data.eg.select top 200 * from tbl1how do i desplay 201 to 400 records? |
|
Dennis Falls
Starting Member
41 Posts |
Posted - 2011-02-02 : 16:05:49
|
create a temp table that has RecID as an Identity columninsert into the temp table sorted by whatever column makes sense for your topselect from temp table where RecID BETWEEN n and n |
 |
|
sathishmangunuri
Starting Member
32 Posts |
Posted - 2011-02-02 : 23:54:43
|
oryou can use ROW_NUMBER()sathish |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|