Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / meher

Let the table name is EMP

To find 101st row the query is as below:

select * from EMP where rownum <= 101
minus
select * from EMP where rownum <= 100;


for Nth salary the query is as below:

SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT
(DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get list of all tables from a database?

1211


What is the need of merge statement?

1092


What does joining a thread mean?

1077


What is a parameter query?

1143


How to create your own reports in sql developer?

1066


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

1058


What is data type in sql?

1006


what is index? : Sql dba

1045


Why do we use %rowtype & %type in plsql?

1100


what are the different index configurations a table can have? : Sql dba

1043


What are the advantages of stored procedure?

1042


Why do we use procedures in pl sql?

1076


What are the triggers associated with image items?

1091


What is not null in sql?

1109


where are cookies actually stored on the hard disk? : Sql dba

1080