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
can sql servers linked to other servers like oracle? : Sql dba
What is transaction control language (tcl)?
Why is nosql good?
Explain character-manipulation functions?
When you have to use a default "rollback to" savepoint of plvlog?
How do I save a sql query?
What is sql server and ase?
What is compilation error in pl sql?
how to do backup entire database? : Transact sql
Can we create clustered index without primary key?
What is difference between sql and oracle?
How do you explain an index number?
What is latest version of sql?
Can you selectively load only those records that you need? : aql loader
Is oracle and sql same?