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
What are the different types of backups that exist?
What is a primary index?
How would you add a section to a table?
Explain what is raid and what are different types of raid levels?
What is @@error in sql?
Define tempdb database?
Can we call future method from trigger?
Difference between aggregate functions of sql?
What is the server name for sql management studio?
What is the difference between TRUNCATE and DROP?
If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security
Can you insert NULL in unique column?
What is the difference between deallocate cursor and close cursor?
What are the Advantages of using CTE in sql server?
How do you maintain database integrity where deletions from one table will automatically cause deletions in another table?