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

Explain the concepts and capabilities of sql server?

682


Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?

702


What is RMS migrations?

1875


How to select some specific rows from a table in ms sql server?

753


How we create SQL Server 2005 Reporting Services ? Give me Sample

1735






What is normalization? What number of normalization shapes are there?

793


Why truncate is ddl command?

705


What Are the Main Features of SQL Azure?

109


What is a field in a table?

771


Define tool Manage Statistics in SQL Server 2000 query ?

714


what is the difference between Delete and Truncate command in SQL

807


What are the pre-defined functions in the sql server?

690


do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

668


Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.

750


Why do we use trigger?

704