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

How do you modify a table in sql?

559


What is synchronized subquery?

591


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

527


What are the 3 types of behavioral triggers?

657


how to fetch alternate records from a table? : Sql dba

590






What is sql lookup?

511


Does sql support programming?

547


Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?

529


What is the max nvarchar size?

513


What are the usages of sql?

560


Why functions are used in sql?

511


What is set serveroutput on?

637


What is sql exception?

513


how can we know the number of days between two given dates using mysql? : Sql dba

539


What is cascade in sql?

557