Write a query to find five highest salaries from EMP table.
(there is a column SALARY)
Answer Posted / kavitha nedigunta
select a.*
from(select empno,ename,sal
from emp
order by sal desc nulls last)a
where rownum <6
order by sal desc
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
What is pl sql block in dbms?
how many columns can be used for creating index? : Sql dba
Can we call procedure in select statement?
Can we use ddl statements in stored procedure sql server?
How do you rank data in sql?
what are the advantages of using stored procedures? : Sql dba
What is cte sql?
What does pl sql stand for?
What is normalization? How many normalization forms are there?
What is the starting oracle error number? What is meant by forward declaration in functions?
Which certification is best for sql?
what is the difference between join and union? : Sql dba
what is primary key? : Sql dba
What does t sql mean?
Which one is faster ienumerable or iqueryable?