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 the second highest salary from emp table?

Answer Posted / hemant

select salary,empname from employee where
salary=(select max(salary) from employee where
salary<(select max(salary) from employee))

This query will produce all the result whose salary is
second highest.

1. A 20000
2. B 20000
3. C 20000
4. D 20000

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a table valued function object?

1023


How do I use google cloud in sql?

1091


Can dml statements be used in pl/sql?

1081


What is embedded sql what are its advantages?

1043


What is the purpose of my sql?

952


How to download oracle sql developer?

1110


How do I remove all records from a table?

1075


Why self join is used in sql?

977


What is varchar sql?

1146


What is sqlservr exe?

978


what is timestamp in mysql? : Sql dba

1078


What are triggers and its types?

1064


Does execute immediate commit?

1221


What are the types of optimization?

961


Why function is used in sql?

951