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...

how to check the 3rd max salary from an employee table?

Answer Posted / radha sri seshu.kolla

1)SELECT MAX(SAL) FROM EMP WHERE LEVEL=3 CONNECT BY PRIOR
SAL>SAL
2)SELECT E.SAL FROM
(SELECT SAL,DENSE_RANK() OVER(ORDER BY SAL DESC)R FROM EMP)
E WHERE E.R=3

9966112520

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we commit inside a trigger?

1050


How do I audit the sql sent to the server?

1061


What are the disadvantages of file system?

1367


is it possible to pass an object or table to a procedure as an argument?

1181


What is thread join () in threading?

1057


How do you define a foreign key?

1067


What are sql procedures?

1085


What is a clob in sql?

1066


Explian rowid, rownum? What are the psoducolumns we have?

1049


can a stored procedure call itself or recursive stored procedure? : Sql dba

1089


Can there be 2 primary keys in a table?

1047


How to find 3rd highest salary of an employee from the employee table in sql?

1136


What is lexical units in pl sql?

1210


What is the sql*loader? : aql loader

1104


What are procedures used for?

1038