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

How to get the number of rows selected or affected by a sql statement?

970


How to dump a table to a file with 'mysqldump'?

1085


What are the steps required to view your mysql database?

1140


How to calculate the difference between two dates?

1119


What are the advantages/disadvantages of mysql and php?

999


Is mysqli faster than mysql?

981


What is a deterministic function?

1119


How to delete a trigger in mysql?

979


How do I stop a query in mysql workbench?

1011


How to delete a column and add a new column to database

993


How to decrement dates by 1 in mysql?

1058


How to update database permissions/privilages.

1029


What is row level locking in access?

934


How can you retrieve a particular number of records from a table?

980


How database are managed?

1046