adspace
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
Is inner join faster than left join?
what are the advantages of sql ? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
Can we rollback truncate?
What is the current version of postgresql?
what is sql server agent? : Sql dba
how to escape special characters in sql statements? : Sql dba
define sql insert statement ? : Sql dba
how to use regular expression in pattern match conditions? : Sql dba
Can we use distinct and group by together?
what is collation? : Sql dba
How do I remove duplicates in two columns?
Does group by remove duplicates?
What is the current version of sql?