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
can sql servers linked to other servers like oracle? : Sql dba
Can we join two tables without common column?
Can you selectively load only those records that you need? : aql loader
Can a procedure in a package be overloaded?
What is the difference between syntax error and runtime error?
When you have to use a default "rollback to" savepoint of plvlog?
How do I count rows in sql query?
What is a unique key?
What is attribute indicator in pl sql?
Does sql full backup truncate logs?
how to extract a unit value from a date and time? : Sql dba
Why are indexes and views important to an organization?
How do I start sql profiler?
What is a sql select statement?
What is the difference between delete and truncate commands?