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

Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / hasnain hameed

select max(salary)
from emp
where salary < (select max(salary) from emp)
order by salary desc;





i think this is correct answer all of above because it take
less time to execute. retrive the answer quickly.

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between $message and $$message? : Sql dba

995


What is Materialized View? In What Scenario we Use Materialized View?

9507


Define overloaded procedure?

1075


What is a unique key?

1050


What does trigger mean in slang?

1048


What is a left join?

949


Can we insert data in view?

955


How much does sqlite cost?

1033


What is update query?

973


tell us something about heap tables. : Sql dba

1094


What is a recursive stored procedure?

1173


What is trigger in pl sql?

990


What is the difference between jpql and sql?

1089


Does truncate need commit?

939


what are all different types of collation sensitivity? : Sql dba

979