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

what is a database? : Sql dba

1162


What are sql ddl commands?

1084


Can we use join in subquery?

1084


What are pl/sql cursor exceptions?

1096


What is meant by temporal data?

962


What is procedure and function in sql?

994


what is the syntax for using sql_variant_property? : Transact sql

1038


How to add, remove, modify users using sql?

1032


Can you do multiple joins in sql?

1045


Is it possible to read/write files to-and-from PL/SQL?

1099


Is it possible to link two groups inside a cross products after the cross products group has been created?

1002


How do I view a table in sql?

1002


Is vs as in pl sql?

984


How many types of normalization are there?

955


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

983