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 is trigger in sql? Explain
What is an exception in PL/SQL? What are the two types of exceptions?
what is 'mysqladmin' in mysql? : Sql dba
How many commands are there in sql?
Is time a data type in sql?
How to rename a column in the output of sql query?
What is the difference between numeric and autonumber?
Explain the difference between 'between' & 'and' operators in sql
What are different functions in sql?
What is the primary use of normalization?
Can we call stored procedure in function?
How do I run a sql query?
What is cursor explain with example?
Is sqlite good enough for production?
What does select top 1 do in sql?