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

20. Using a set operator, display the client number of all clients who have never placed an order.

1793


How to retrieve the count of updated rows?

568


What is oracle instant client?

558


How to write date and time interval literals in oracle?

564


Is there a combination of "like" and "in" in sql?

575






Difference between oracle's plus (+) notation and ansi join notation?

568


How to work with data objects interactively?

548


how may join possible between (requisition with purchase order)

1695


What is oracle rownum?

508


How to set up autotrace for a user account?

590


Is oracle a relational database?

516


How we can able to import our own template (users designed MS-Word templates) which has many tabular columns; need to pass some values generate by Oracle-reports9i? Actually need to import more than 400 MS-Word templates into Oracle Reports-9i to minimize layout design in Reports.

1608


How to create a single index for multiple columns?

557


can u plz provide me oca sql dumps please i need them

1461


What is a package ? What are the advantages of package ?

596