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...

how to find out second largest value in the table

Answer Posted / kamala k n

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?

2212


What is Undo Management Advisor in Oracle?

1107


What is the simplest tool to run commands on oracle servers?

1013


What is not equal to in oracle?

1006


Explain how are indexes update?

1071


How to create a new user account in oracle?

1025


In not less than 100 words what's the main difference between Rolap and Molap in ORACLE ?

2290


Explain the use of owner option in exp command.

1052


Where do you use decode and case statements?

1002


What is a package in oracle?

1111


Calculate difference between 2 date / times in oracle sql?

1045


What are temporal data types in oracle?

1128


What is user managed backup in Oracle?

1149


What is a private synonym?

1593


How to get maxsal , minsal, ename department wise in single query

1555