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

select distinct (a.sal) from emp a where &n = (select count
(distinct(b.sal) from emp bmwhere a.sal<=b.sal)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the command used to fetch first 5 characters of the string?

1392


can a stored procedure call itself or recursive stored procedure? : Sql dba

1026


how would concatenate strings in mysql? : Sql dba

1086


What is out parameter used for eventhough return statement can also be used in pl/sql?

1069


explain advantages of innodb over myisam. : Sql dba

1125


what is subquery? : Sql dba

1126


Is sql database free?

968


Why query optimization is needed?

921


What is form and report?

972


what is the difference between undefined value and null value? : Sql dba

1096


What is count * in sql?

993


What is a column in a table?

1118


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

1144


what is blob? : Sql dba

1143


what is the difference between nested subquery and correlated subquery?

1049