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 action do you have to perform before retrieving data from the next result set of a stored procedure ?

2611


how to load data files into tables with 'mysqlimport'? : Sql dba

1147


what is 'trigger' in sql? : Sql dba

1146


What does seeding a database mean?

1023


How to call a javascript function from pl sql?

1187


What are %type and %rowtype for?

1107


How many types of normalization are there?

1016


What is cte sql?

1053


What is mutating error in pl sql?

1066


What is forward declaration in pl sql?

1141


How is a process of pl/sql compiled?

1239


Why we use joins in sql?

1036


Explain what is a column in a table?

1158


explain the difference between myisam static and myisam dynamic. : Sql dba

992


What is the difference between the sql*loader and import utilities? : aql loader

1096