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
How do I make sql search faster?
What are sql data types?
what are the types of join and explain each? : Sql dba
What are pl sql data types?
What is embedded sql with example?
what is the difference between delete and truncate statement in sql? : Sql dba
What is database sql?
What is a schema sql?
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
What is procedure and function in sql?
I need a function for a train ticket reservation please answer it thanks in advance
What is the difference between having clause and where clause?
Can we join more than 2 tables in sql?
Differentiate between sga and pga.
What is sequence in sql?