Write a query to find five highest salaries from EMP table.
(there is a column SALARY)
Answer Posted / k.prashanth
Select
ename,sal,deptno
from emp
where sal in
(select max
(sal) from emp
where
level<=5
connect by
prior sal<sal
group by level)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are character functions in sql?
Is primary key clustered or nonclustered?
How do I remove all records from a table?
How do I create an index in word?
What is the advantage of nosql?
Do we need commit after truncate?
What is pl sql record in oracle?
How do I filter in sql profiler?
What is an ndf file?
How to get list of all tables from a database?
Explain the difference between cursor declared in procedures and cursors declared in the package specification?
What is rank function in sql?
How many developers work on postgresql?
how to select first 5 records from a table? : Sql dba
how would you get the current date in mysql? : Sql dba