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


Please Help Members By Posting Answers For Below Questions

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

2102


Is inner join faster than left join?

1289


what is collation? : Sql dba

1242


what is dbms? : Sql dba

1072


how to escape special characters in sql statements? : Sql dba

1124


How do I remove duplicates in two columns?

1202


What is the current version of postgresql?

1188


Can we rollback truncate?

1086


what is sql server agent? : Sql dba

1190


what are the advantages of sql ? : Sql dba

1154


If a cursor is open, how can we find in a pl/sql block?

1252


What is the best sql course?

1064


What is your daily office routine?

2353


Does group by remove duplicates?

1122


what are all the common sql function? : Sql dba

1143