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 do I run a pl sql program?
How many subqueries can be nested in a statement?
How can you fetch common records from two tables?
Explain select statements in sql?
What is scalar data type in pl sql?
What is structural independence and why is it important?
How do you use join?
What is the difference between clustered and non-clustered index in sql?
Write a query to display the current date in sql?
What is a record in pl/sql?
what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba
What is self-join and what is the requirement of self-join?
What is a recursive join sql?
define sql delete statement ? : Sql dba
What is recursive join in sql?