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

select min(salary) from (select salary from table_name order by salary desc) where rownum<3;

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different set operators available in sql?

1080


How do I remove duplicates in two columns?

1149


Which one is better subquery or joins?

1115


Why should I use postgresql?

1068


What is int identity in sql?

1207


Why is sql important?

1171


Can you selectively load only those records that you need? : aql loader

1093


Why do we use partitions in sql?

1096


Which join is like inner join?

1089


Is left join inner or outer?

1057


How do I run a sql query in pgadmin 4?

1000


What are string functions in sql?

1305


what are myisam tables? : Sql dba

1078


Is left join faster than join?

1096


what are rollup and cube in t-sql? : Transact sql

1150