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


Please Help Members By Posting Answers For Below Questions

what is schema? : Sql dba

1163


what are all the common sql function? : Sql dba

1141


what is collation? : Sql dba

1242


how to escape special characters in sql statements? : Sql dba

1124


Do we need to rebuild index after truncate?

1151


How do I remove duplicates in two columns?

1202


what is sql server agent? : Sql dba

1188


What is the current version of sql?

1106


If a cursor is open, how can we find in a pl/sql block?

1252


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

2100


what is dbms? : Sql dba

1070


what are aggregate and scalar functions? : Sql dba

1142


What is the best sql course?

1062


Can we rollback truncate?

1083


what is bcp? When does it used? : Sql dba

1065