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 find second highest salary of an employee.

Answer Posted / gvmahesh

I write the query for this question using OLAP functions.

select e1.* from (select ename,sal,rank()
over(order by sal desc) rank from emp) e1
where e1.rank=2;

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the limitation on the block size of pl/sql?

1037


What is db journal file?

1155


What is case function?

1091


What is sql server and ase?

1067


How does sql*loader handles newline characters in a record? : aql loader

1090


What is a primary key example?

1001


what is innodb? : Sql dba

1164


What is rollback?

1184


What is the main difference between sql and pl/sql?

1148


Which nosql database is best?

1024


Can you rollback after commit?

1049


What is clause?

1228


What is sharding in sql?

1039


What are sql ddl commands?

1136


What are the string functions in sql?

1022