a query to select maxmun 3 salaries of employee table
Answer Posted / dhanya
select rnk, no,sal from (
SELECT DENSE_rank()over(partition by no order by sal desc ) RNK,d2.no,sal FROM DUMMY2 d2)
where rnk =2;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is meant by a deadlock situation?
What is the difference between sharding and replication?
What is a database schema in oracle?
How to create an oracle database?
How to pass a cursor variable to a procedure?
WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?
What is index in Oracle?
What is a trigger and what are its types?
What is oracle join syntax?
What do you mean by a database transaction & what all tcl statements are available in oracle?
Can group functions be mixed with non-group selection fields?
what are archived logs?
What are the attributes of cursor?
I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?
how can db_files > maxdatafiles since db_files is for instance and the later is for database