Answer Posted / zeljko
This answer_10 will work only if there is not order by used
on select statement.
I recommend using dense_rank function to get second row out
as in example;
SELECT * FROM (
SELECT id, first_name, salary,
DENSE_RANK() OVER(ORDER BY salary desc) row_order
FROM employee)
WHERE row_order = 2;
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
How many triggers can be applied to a table?
How can get second highest salary in sql?
What is difference between inner join and cross join?
Why do we need cursor in pl sql?
Can there be more than one function with a similar name in a pl/sql block?
Can I join the same table twice?
what does myisamchk do? : Sql dba
What is the difference between stored procedure and view?
What is the usage of nvl function?
What is scope of pl sql developer in future?
How do I run a script in sql developer?
What is numeric function sql?
What is data manipulation language?
How do I edit a stored procedure?
How do I create an index in word?