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 find the second highest salary from emp table?

Answer Posted / gourvendra singh

Please put the below query, u will get the second highest
salary of the table :---

select sal from(select sal from
(select distinct sal from emp order by sal desc)
where rownum<=2 order by sal asc)
where rownum=1;

Is This Answer Correct ?    488 Yes 264 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current version of sql?

1023


What do you mean by dbms? What are its different types?

1018


How do you use a while loop in pl sql?

1010


What is a design view?

924


What is the difference between inner join and outer join?

996


what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba

1129


What is the purpose of the sql select top clause?

1112


What is the difference between alter trigger and drop trigger statements?

1107


what are the advantages and disadvantages of cascading style sheets? : Sql dba

1060


Can a foreign key be a duplicate?

910


define sql insert statement ? : Sql dba

1023


what is 'mysqldump'? : Sql dba

1108


Explain the uses of database trigger.

1112


What is numeric function sql?

1058


What does rownum mean in sql?

1022