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

Which normal form is best?

951


What is the maximum rows in csv?

927


What are the advantages of pl sql over sql?

1026


how to delete an existing column in a table? : Sql dba

1007


What are instead of triggers?

1046


What is the difference between drop and truncate commands?

1062


Why is theta join required?

1147


Is coalesce faster than isnull?

967


what is “go” in t-sql? : Transact sql

1108


What is autocommit sql?

999


Can pl sql procedure have a return statement?

1033


how does a local variable is defined using t-sql? : Transact sql

1019


What is data profiling in sql?

1084


Advantages and disadvantages of stored procedure?

1122


what is a primary key? : Sql dba

1038