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

What are the rendering extensions of ssrs?

105


Can we write trigger for view?

557


What are the different types of replication you can set up in sql server?

529


What is the use of RDBMS?

591


What is difference between temp table and cte?

535






Why do we use sql limitations? Which constraints can we use while making a database in sql?

561


What are the requirements to use odbc connections in php scripts?

597


What are the advantages of using a stored procedure?

560


What is transaction server consistency?

551


What is cached report?

106


What is log shipping?

560


How can you append an identity column to a temporary table?

451


How to create dbo table in sql server?

516


what is a self join? : Sql server database administration

526


Other than truncate statement, which other command can by-pass the trigger on the tables?

622