if i have 1000 records and i want to access 20 ata time
from SQL server, what will be the query?
Answer Posted / rasbeer
Declare @PageIndex int
set @PageIndex=2
select top 20 * from
(select top 20 * from
(select top (@PageIndex*20) * from chat_contents order by
id ) as a1
order by id desc)as b1 order by id
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the page life cycle in asp.net?
how to elimainte the similar data from the different tables
What is state management technique?
What is application and session in asp.net?
Explain exception handling in .net.
What are merge modules?
What is the state management in asp.net?
Which protocol is used to call a web service?
How can you make sure that web api returns json data only?
Explain how cookies work.
Explain the page lifecycle of an asp.net mvc? : asp.net mvc
What is http request and response?
What is asp.net file?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
What is the significance of attaching a profile while creating a user?