Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to retrieve range of 10th rows to 20 th rows from total
rows from a database table.? (Not from Dataset)

Answer Posted / upendra

USE CTE

http://www.4guysfromrolla.com/webtech/071906-1.shtml


WITH CTE_Table AS ( SELECT
Row_number() OVER (
ORDER BY
sort_Column ) AS RowNum
, premiumamount
FROM
shplaninfo )

SELECT
*
FROM
CTE_Table
WHERE
RowNum BETWEEN ( 10 ) AND ( 19 )

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the steps to create and execute a user-defined function in the sql server?

958


what method you can use to reduce the overhead of Reporting Services data sources?

253


What is a hint?

985


How can I create a new template for import ? : sql server management studio

1065


What is the contrast between sql and mysql?

1102


What are the advantages of log shipping?

988


How to resolve the orphan use problem? : sql server security

1010


How do users use Report Builder with SQL Server data sources?

153


What is the difference between indexing and hashing?

1156


When do you think a developer should use sql server-based cursors?

1038


Should you normalize audio?

932


Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?

955


What stored by the model? : sql server database administration

945


What is rank function?

1019


What stored by the msdb?

989