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
Can you pass expressions to function parameters?
Explain syntax for dropping triggers?
What do you mean by an execution plan?
Differentiate between sql temp table vs table variable?
How to convert a unicode strings to non-unicode strings?
What are scheduled tasks in sql server?
What happens if you insert a duplicate key for the primary key column in ms sql server?
What are the different type of replication in sql server?
Explain full-text query in sql server?
Is t sql the same as sql server?
What is the difference between having clause and where clause in sql server?
How to scale out a federation by Sql statement?
What is difference between commit and rollback when used in transactions?
What stored by the tempdb ? : sql server database administration
List all types of constraints in sql server?