suppose we have a table in which 200 rows. i want to find
101 row ? what the query....
and how we find 4th and 5th highest salary and 1 to 10
highest salary

Answer Posted / umesh h

Use Minus Operator
select * from emp where rownum<=101
minus
select * from emp where rownum<=100;
Here minus will display data only from first query minusing
from 2 query.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is sql a backend?

551


What are predefined functions in sql?

535


How do I make sql search faster?

560


how to get @@error and @@rowcount at the same time? : Sql dba

531


Is left join same as join?

524






what are the differences among rownum, rank and dense_rank? : Sql dba

540


how many tables will create when we create table, what are they? : Sql dba

544


Define overloaded procedure?

622


What is basic structure of pl sql?

505


What is a table partition?

597


explain access control lists. : Sql dba

557


What is trigger types of trigger?

552


What is natural join in sql?

537


What is embedded sql with example?

546


What is minus?

547