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 / anita prasad

SELECT MIN(SAL) FROM (SELECT DISTINCT * FROM EMP ORDER BY DESC) WHERE ROWNUM<3;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use transactions efficiently : transact sql

1062


How is a process of pl/sql compiled?

1167


How to test for null values?

1057


Is primary key clustered index?

954


How many sql statements are used?

1018


What are character functions in sql?

943


Can we call a function containing dml statements in a select query?

988


How to run sql*plus commands in sql developer?

1163


What is a clob in sql?

1026


Mention what is the plv (pl/vision) package offers?

1108


Which is better join or inner query?

1061


How do I remove all records from a table?

1081


Explain exception handling in pl/sql?

1042


Mention what does plv msg allows you to do?

1127


What is the difference between drop and truncate commands?

1063