Answer Posted / chiru
select *
from (select row_number() over(partition by deptno order by sal desc) r,
b.*
from (select rownum num, a.* from emp a order by sal desc) b)
where r <= 3
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is sqlite thread safe?
Can we rename a column in the output of sql query?
Which is better join or inner query?
Write a sql query to find the names of employees that begin with ‘a’?
Can variables be used in sql statements?
what are the differences between require and include, include_once and require_once? : Sql dba
How can we find duplicate records in a table?
what is 'mysqld'? : Sql dba
Explain aggregate functions are available there in sql?
Difference between table function and pipelined function?
What is difference between mysql and postgresql?
Is it possible to include an insert statement on the same table to which the trigger is assigned?
Explain isolation levels. : Transact sql
What are the advantages of stored procedure?
Can we create clustered index without primary key?