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

Answer Posted / nancy

select * from (
select tn.*, rownum rd from emp tn ) where rd between 100 and 200;

or

select * From (select tn.* from emp tn where rownum <201
minus
select tn.* from emp tn where rownum <100)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain lock escalation? : Transact sql

869


What is sql and explain its components?

805


What are different types of functions in sql?

723


Explain what is a view?

797


what is not null constraint? : Sql dba

725






what is 'mysqlimport'? : Sql dba

725


What is int identity in sql?

760


What is anonymous block in sql?

829


What are reports usually used for?

767


What is sqlcommand?

751


Can variables be used in sql statements?

747


How can we debug in PL/SQL?

855


What is server name sql?

804


What is the starting oracle error number? What is meant by forward declaration in functions?

742


What is pl/sql table? Why is it used?

741