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

What is compression - row-level and page-level compression?

922


Explain unique key in sql server?

1017


What are the differences between left join and inner join in sql server?

1115


what are the three command line utilities and what are their primary functions?

149


what is hash nonclustered index

977


When a primary key constraint is included in a table, what other constraints does this imply?

990


What are the restrictions while creating batches in sql server?

1068


What is the template in sql?

986


How to retrieve error messages using odbc_errormsg()?

1067


What is partition index in sql server?

1128


How to use subqueries with the in operators in ms sql server?

1084


What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration

1092


What are parameterized reports?

204


When would you use a before or after trigger?

916


Can we update data in a view?

1040