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 is the use of stored procedures?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?
Is left join and outer join same?
What is primary key in db?
What does varchar include?
tell me about various levels of constraint. : Sql dba
What is scalar and vector?
What are the dml statements?
Can we use two order by clause in query?
What is record in pl sql?
How many sql commands are there?
What is the difference between alter trigger and drop trigger statements?
Is it mandatory for the primary key to be given a value when a new record is inserted?
Can there be more than one function with a similar name in a pl/sql block?
Is sql easier than java?