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

select rownum,empno,sal from (select
rownum,empno,sal from emp order by sal desc) group
by rownum,empno,sal having rownum=2;


This will clearly work.............

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are commit, rollback, and savepoint?

940


What is crud sql?

924


Is hadoop a nosql?

950


What has stored procedures in sql and how we can use it?

1017


What are the limitations of sql express?

988


What are the types of join and explain each?

989


What is embedded sql what are its advantages?

962


How do I view a procedure in sql?

913


how many ways we can we find the current date using mysql? : Sql dba

1039


Could you please provide oca (oracle 10g) dumps for my certification ?

5070


Define the select into statement.

997


What is where clause in sql?

984


Can one improve the performance of sql*loader? : aql loader

983


Explain foreign key in sql?

972


What is #table in sql?

997