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 / newbie

SELECT E.* FROM
(SELECT ROW_NUMBER() OVER (ORDER BY EmpID) AS RowCounts,
Salary FROM Emp) AS E
WHERE E.RowCounts BETWEEN 10 AND 20

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does any body please help me what question's have asked for SSRS in the interview?

2202


as a part of your job, what are the dbcc commands that you commonly use for database maintenance? : Sql server database administration

951


how many bits ip address consist of? : Sql server database administration

944


whats new about truncate in sql server 2008?

2555


Do you know exporting and importing utility?

1106


How can sql injection be stopped? : sql server security

1104


Please explain go command in sql server?

1112


How to execute the cursor queries with "open" statements?

1242


What is the index requirement in SQL Azure?

98


What is instead of trigger sql server?

1080


what is the difference between openrowset and openquery?

1160


What is index fragmentation in ms sql server?

1145


What is server-level principal?

122


What is linked report?

137


What is the difference between a view and a stored procedure?

1091