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 are stuff and replace function?

1143


How to run sql statements with oracle sql developer?

1123


What is pl sql package?

1073


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

1244


Is nosql faster than sql?

1076


how to escape special characters in sql statements? : Sql dba

1083


What is a rank in sql?

1010


What is a stored procedure in sql with example?

1204


what are the advantages of using stored procedures? : Sql dba

1157


What is the difference between view and stored procedure?

1003


Explain alias in sql?

1094


Define commit, rollback and savepoint?

1082


What is fmtonly in sql?

1165


Why do we use sql constraints?

1215


What is rowtype?

1081