|
| Total Answers and Comments: 18 |
Last Update: February 27, 2008 Asked by: Thiagu1978 |
|
| | |
|
No best answer available. Please pick the good answer available or submit your answer. | | Sorting Options | |
| |
|
April 02, 2006 13:00:19 | #4 |
| JEELU |
|
|
RE: Write a query to find the Nth largest value in ...
| To find Nth largest salary (not only second largest salary) the query is : select sal from emp e where &n (select count(*) from emp where e.sal< sal) |  | | Is this answer useful? Yes | No | | |
|
| |
|
April 13, 2006 03:05:29 | #6 |
| pravinshetty76 |
|
Member Since: April 2006 Contribution: 1 |
RE: Write a query to find the second largest value in ...
| hi feroz You answer is corect. Thanks!!! Pravin |  | | Is this answer useful? Yes | No | | |
|
| |
|
August 28, 2006 16:04:54 | #9 |
| Rajani |
|
|
RE: Write a query to find the second largest value in ...
| For any question of this type .. just follow the simple methodology called TOP N ANALYSIS. For the 3rd highest salary employee Select emp_name rownum From (select emp_name from emp Order by sal DESC) where rownum 3. For further clarification just test the similar type of queries with this methodology. |  | | Is this answer useful? Yes | No | | |
|
| |
|
September 05, 2006 08:02:27 | #10 |
| sanjeev |
|
|
RE: Write a query to find the second largest value in ...
| Feroz's Query is correct. It correctly finds the 2nd largest number in a table. Can any one plz give the same for nth highest number? Thanks Sanjeev Kumar Jha |  | | Is this answer useful? Yes | No | | |
|
| |
Go To Top
|