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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-02-26 : 09:12:35
|
| Cagatay writes "I have 4 different stored procedure. They work on different tables. I want to show their results on a web page. Because they bring more that 500 hundred records, I want to sort and show these results 20 by 20. Thanks for your help.SQL 2000Windows 2000 Pro." |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2002-02-26 : 09:38:10
|
| If you look in the faqs you will see some articles on paging.In essenceselect top 20 * from (select top 40 * from tbl order by id) as a order by id descwill get the second 20 or soYou can use a temp table or table variable to make things easier if you wish.==========================================Cursors are useful if you don't know sql.Beer is not cold and it isn't fizzy. |
 |
|
|
lfmn
Posting Yak Master
141 Posts |
|
|
Sam Lewitan
Starting Member
3 Posts |
|
|
|
|
|