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
What are triggers in sql?
define join and explain different type of joins? : Sql dba
What are the indexing methods?
What are the benefits of stored procedures?
What is a trigger in sql?
what's the difference between a primary key and a unique key? : Sql dba
What is a heap in sql?
How do I clear the screen in sql plus?
what are the 'mysql' command line options? : Sql dba
What is online transaction processing (oltp)?
How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?
How many types of triggers exist in pl/sql?
Show the two pl/sql cursor exceptions.
What is pls integer?
What is sqlite format?