Write a query to find five highest salaries from EMP table.
(there is a column SALARY)
Answer Posted / vishnu
select level,max(sal) from emp
where level<=5
group by level
connect by prior sal>sal
order by level Asc;
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
what is 'mysqladmin' in mysql? : Sql dba
What is left join in postgresql?
How to select unique records from a table?
how can we submit a form without a submit button? : Sql dba
How does stored procedure reduce network traffic?
Explain about various levels of constraint.
What is sql entity?
Are sql database names case sensitive?
What are different sql data types?
What does partition by mean in sql?
How to rename a table?
what is blob? : Sql dba
What is the difference between left outer join and left join?
Which nosql database is best?
What makes a good primary key?