adspace
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
what is schema? : Sql dba
what are all the common sql function? : Sql dba
what is collation? : Sql dba
how to escape special characters in sql statements? : Sql dba
Do we need to rebuild index after truncate?
How do I remove duplicates in two columns?
what is sql server agent? : Sql dba
What is the current version of sql?
If a cursor is open, how can we find in a pl/sql block?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
what is dbms? : Sql dba
what are aggregate and scalar functions? : Sql dba
What is the best sql course?
Can we rollback truncate?
what is bcp? When does it used? : Sql dba