How to retrieve range of 10th rows to 20 th rows from total
rows from a database table.? (Not from Dataset)
Answer Posted / x.cannon
SELECT * FROM
(
SELECT NTILE(2) AS div, * FROM
(
SELECT TOP(20) FROM <table_name>
) AS tmp
) AS tmp WHERE div = 2
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a query to find 5th highest amount paid from the customer table.
Explain datetime2 data type in sal server 2008?
Explain insert into select statement?
What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?
What do you mean by data integrity?
What is data block and how to define data block size?
How to define and use table alias names in ms sql server?
What is mscorsvw.exe - process - microsoft .net framework ngen?
What is CTE in SQL
When a primary key constraint is included in a table, what other constraints does this imply?
What is msdb database? : SQL Server Architecture
How to get the definition of a user defined function back?
How many triggers you can have on a table?
can an automatic recovery be initiated by a user? : Sql server administration
What is sql azure database?