adspace
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
How do I remove duplicates in two columns?
Is inner join faster than left join?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
Do we need to rebuild index after truncate?
Is primary key clustered index?
what is collation? : Sql dba
what are aggregate and scalar functions? : Sql dba
how to use regular expression in pattern match conditions? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
Does group by remove duplicates?
what is sql server agent? : Sql dba
define sql insert statement ? : Sql dba
how to start mysql server? : Sql dba
What is the current version of sql?
what is dbms? : Sql dba