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
Explain what are the database objects? : SQL Server Architecture
How to get the query of a table in sql server?
What happens to a trigger with multiple affected rows?
What is simple indexing method?
How many clustered indexes there can be on table ?
Define self join?
What is the default value of an integer data type in sql server 2005?
What are the five characteristics of good data?
What is the difference between a function and a trigger?
How to execute the cursor queries with "open" statements?
Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication
What is sql collation?
Do you know what is user defined datatypes and when you should go for them?
What is extent? Types of extents?
Do you know the policy based administration feature of sql server 2008?