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 2nd highest salary in random database salary of employer.....

Answer Posted / pankajbisane

select emp_name, salary from employee where salary = (select MAX(salary) from employee
WHERE salary <> (select MAX(salary) from employee ))

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is mysql a database?

951


Can you tell which of the following where clauses is faster?

908


How to return query output in html format?

936


In which year mysql created?

976


What is new mysqli?

911


What is the difference between myisam dynamic and myisam static in mysql?

1013


What is the insert?

893


Where does mysql store data?

880


How to represent ENUMs and SETs internally?

1131


What are the ways in which you can retrieve data in the result set of mysql using php?

990


How can I create table in mysql?

1022


Can I copy mysql data directory?

924


What is unsigned int in mysql?

927


Can a table have multiple primary keys?

904


What are the differences between char and varchar?

1111