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 / uday

Hi friends i think it is surely work because i worked for this.

select * from emp e where 1=(select count(distinct d.esal)
from emp d where d.esal>e.esal)

any one plz try if it's not work

plz let me know.
uday_testing@yahoo.co.in

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use commit inside a trigger?

1030


what are the features and advantages of object-oriented programming? : Sql dba

955


What are the events on which a database trigger can be based?

1103


Why functions are used in sql?

932


How do I know if I have sql express or standard?

979


What is the purpose of a sql?

915


What is pl sql code?

995


How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?

1383


What is varchar data type in sql?

1016


What is the maximum number of rows in sql table?

957


How many row comparison operators are used while working with a subquery?

976


What are the types of join and explain each?

989


Where the sql database files are stored?

958


What is the use of partition by in sql?

931


Explain ddl statements in pl/sql?

961