A table has 150 records. How do you retrieve 100th row to
120th row from that table ?

Answer Posted / arif hussain

select * from (
select ROW_NUMBER() over (order by tablename.columnname)as ronno,* from tablename )x
where ronno between 100 and 120

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain autonomous transaction.

644


How do I install microsoft sql?

537


How many subqueries can be nested in a statement?

512


Can we update views in sql?

543


What are packages in pl sql and also explain its advantages?

540






Can you selectively load only those records that you need? : aql loader

619


What is a primary key sql?

569


What is partition in sql query?

527


tell us something about heap tables. : Sql dba

611


How do I upgrade sql?

561


What is the difference between execution of triggers and stored procedures?

560


what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?

2013


What is a parameter query?

635


What is self-join and what is the requirement of self-join?

646


Does db2 use sql?

522