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 does count (*) mean?

873


What is compound trigger?

959


Mention what problem one might face while writing log information to a data-base table in pl/sql?

1158


What is synonyms?

999


Explain dml and ddl?

920


Why indexing is needed?

939


How to check if a column is nullable before setting to nullable?

1055


Mention what is the function that is used to transfer a pl/sql table log to a database table?

932


What is cross join sql?

866


Is like operator in sql case sensitive?

961


Write a sql query to convert all character to uppercase after hypen.

1375


How do I edit a trigger in sql developer?

935


What is a common use of group by in sql?

995


What is snowflake sql?

1011


How many times can we commit in a loop?

955