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

How to delete a database in ms sql server?

1315


How to find the second highest salary of an employee?

1221


What are the joins in sql server? : sql server database administration

1050


Explain a checkpoint?

1084


What is the log shipping?

1058


what happens on checkpoint? : Sql server database administration

1156


Where is localdb stored?

990


Define right outer join in sql server joins?

1106


Explain the phases a transaction has to undergo?

1109


What are the different methods available under sqlcommand class to access the data?

1166


What is the importance of a recovery model?

1092


What is the syntax to execute the sys.dm_db_missing_index_details?

1072


Your table has a large character field there are queries that use this field in their search clause what should you do?

923


what are different types of backups available in sql server? : Sql server database administration

982


How to execute function in stored procedure sql server?

1227