How to retrieve range of 10th rows to 20 th rows from total
rows from a database table.? (Not from Dataset)

Answer Posted / adhar jain

With temp As
(
Select columns,
row_number() Over (Order By sort_Column) As row_num
From table
)
Select * from temp where row_num between 10 and 19

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we delete data from a view?

544


Mention the different types of triggers?

551


Differentiate between ms sql server reporting services vs crystal reports?

488


What is difference between order by and group by?

576


Explain about temporary stored procedure?

532






What is the definition for sql server 2000?

593


How many instances per computer are there in sql server 2000?

583


What command is used to rename the database?

529


Explain the usage of floor function in sql server.

508


How to rebuild the master database?

581


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

727


What are exact numeric data types in ms sql server?

514


Is it important for a database administrator to understand the operating system and file access?

516


What are trace flags?

598


what is the maximum size of a row? : Sql server database administration

537