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

You want to implement the one-to-one relationship while designing tables. How would you do it?

910


Can binary strings be converted into numeric or float data types?

967


What is relationship? What number of sorts of relationship are there?

1063


What samples and sample databases are provided by microsoft?

976


If the job running very slow what is the action you do

1825


What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?

1079


Once setting replication, is it potential to own a publisher as sixty four bit sql server and distributor or subscribers as a thirty two bit sql server?

945


What is nonclustered index with included columns ?

906


Explain what is “asynchronous” communication in sql server service broker?

868


What is difference between after and before?

982


what's new in sql server 2016?

906


what are the different stages of Report Processing?

125


What is enhanced database mirroring in sql server 2008?

914


Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.

971


Explain transaction server explicit transaction?

877