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 difference between delete and truncate commands? : Sql dba
What is the difference between a procedure and a function?
What is numeric function sql?
How many sql core licenses do I need?
What are the sql commands?
Explain what is sql*plus?
how to write date and time literals? : Sql dba
Define tables and fields in a database
What are the different types of dbms?
- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?
What is pragma in sql?
What is the primary key?
Explain clause in sql?
Explain the select statement in sql?
what is dbms? : Sql dba