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
What are sql ddl commands?
Why stored procedure is better than query?
What does (*) mean in sql?
what is the command used to fetch first 5 characters of the string? : Sql dba
What is multiple partition?
Is there any restriction on the use of union in embedded sql?
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
How do I count rows in sql?
How do you exit in sql?
What is primary key and foreign key with example?
What is bitemporal narrowing?
What is pl/sql table? Why is it used?
What is dml and ddl?
what is the difference between char_length and length? : Sql dba
How you can copy a file to file content and file to pl/sql table in advance pl/sql?