how can find the second max sal for every group(i.e i want
group the data based on key and find the second max sal for
every group
Answer Posted / nathan
SELECT *
FROM (SELECT deptno, sal,
DENSE_RANK () OVER (PARTITION BY deptno ORDER
BY sal DESC)
ranks
FROM emp)
WHERE ranks = 2;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How to get a list of all background sessions in the database?
Why should I use oracle database?
What do you mean by merge in oracle and how can we merge two tables?
Which is better Oracle or MS SQL? Why?
How different is ms access and oracle?
What is a synonym? What are its various types?
How to see free space of each tablespace?
Is oracle a programming language?
How to check your oracle database 10g xe installation?
What is a snapshot in oracle database?
What is the usage of synonyms?
How to start a new transaction in oracle?
11. Display the client number and name and the client number and name of the person who referred that client.
What is a system tablespace and when it is created?
Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.