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

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

Is This Answer Correct ?    7 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are aggregate functions called so?

1012


Why is nosql good?

1083


What is the difference between inner join and outer join?

1040


How do I partition a table in sql?

1208


What is sqlcommand?

1071


How do you create an update query?

1024


what is denormalization. : Sql dba

1162


what is bdb (berkeleydb)? : Sql dba

1093


How do I remove sql developer from windows 10?

1183


what are local and global variables and their differences? : Sql dba

1136


How do I copy a table in sql?

1037


What is foreign key in sql with example?

975


What does where 1 1 mean in sql?

1077


What is sqlite format?

1263


How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?

1493