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

what is oltp (online transaction processing)? : Sql dba

1071


How can a function retun more than one value in oracle with proper example?

1072


How many developers work on postgresql?

975


Does pl/sql support create command?

1101


what are the differences between char and varchar? : Sql dba

1068


Can we use pl sql in sql server?

1080


What are different types of statements supported by sql?

1162


What is difference between table and view?

1048


Is subquery faster than join?

1009


Who developed sql?

1033


What does truncate mean in sql?

1018


How do you update a value in sql?

1037


How are sql commands classified?

1084


Does sql require a server?

1005


Why truncate is used in sql?

1002