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 truncate?

658


What is the basic structure of an sql?

752


What is over () in sql?

684


If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????

3697


How to take user input in pl sql?

887






Are left and right joins the same?

715


Which nosql database is best?

679


Is progress software supports to ( pl/sql )?

712


What are two statement types in sql?

740


What are pl/sql cursor exceptions?

750


What is compiled query?

742


What is the difference between distinct and unique in sql?

648


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3307


How does sql store data?

663


What is a native sql query?

699