adspace
Write a query to find five highest salaries from EMP table.
(there is a column SALARY)
Answer Posted / amit bharane
select empid,salary
from (select empid,salary
from emp
order by sal desc)
where rownum <=5;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
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
Is inner join faster than left join?
what is collation? : Sql dba
what is dbms? : Sql dba
how to escape special characters in sql statements? : Sql dba
How do I remove duplicates in two columns?
What is the current version of postgresql?
Can we rollback truncate?
what is sql server agent? : Sql dba
what are the advantages of sql ? : Sql dba
If a cursor is open, how can we find in a pl/sql block?
What is the best sql course?
What is your daily office routine?
Does group by remove duplicates?
what are all the common sql function? : Sql dba