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
Do we need commit after truncate?
How do I make sql search faster?
Can you join a table to itself?
What is trigger and how to use it in sql?
Explain isolation levels. : Transact sql
Can we perform dml on view?
what is the difference between a local and a global temporary table? : Sql dba
What is data control language (dcl)?
Is primary key always clustered index?
What is the importance of sqlcode and sqlerrm?
Is like operator in sql case sensitive?
What do you mean by table in sql?
Is sql a backend?
Explain how can you save or place your msg in a table?
what is a record in a database ? : Sql dba