Write a query to find five highest salaries from EMP table.
(there is a column SALARY)
Answer Posted / sarath
select ename,sal,SAlrank from(select ename,sal,dense_rank()
over(order by sal desc) Salrank from emp)
where salrank <=5
Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
Does truncate require commit?
Why function is used in sql?
Why truncate is used in sql?
What does count (*) do in sql?
What are the types of join and explain each?
What is example of database?
How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?
How do I partition in sql?
How do I run pl sql in sql developer?
Why trigger is used in sql?
How do I run a program in pl sql?
What are tables and fields?
What is the difference between the conventional and direct path loads? : aql loader
How to rename a table?
Is left join faster than join?