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

select c.emp_id,c.salary from (select rownum as
rn1,c.emp_id,c.salary from (select * from table_name ORDER
by salary DESC) b) c
where c.rn1 = n --(n=3)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a select statement fire a trigger?

1094


how to use case expression? : Sql dba

957


Can we use joins in subquery?

1084


What does pragma mean?

967


How do I pipe the output of one isql to another?

943


How do I count rows in sql query?

937


How do you copy a table in sql?

1009


Do we need commit after truncate?

1025


Why is %isopen always false for an implicit cursor?

1032


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

1057


what are the differences between char and varchar? : Sql dba

1000


What is a heap in sql?

989


How do we accept inputs from user during runtime?

989


How to create an array in pl/sql?

1008


How does cross join work in sql?

955