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 does t sql mean?
Is sql workbench free?
What is parallel hint?
Mention what plvcmt and plvrb does in pl/sql?
Is clustered index a primary key?
What is trigger explain it?
What is rank function in sql?
Is primary key clustered index?
what are myisam tables? : Sql dba
What is difference between primary and secondary key?
How does index help in query performance?
What is the purpose of normalization?
how to use 'mysql' to run sql statements? : Sql dba
What does cursor do in sql?
How do you use collections in procedure to return the resultset?