Write a query to find five highest salaries from EMP table.
(there is a column SALARY)

Answer Posted / yogesh sharma

SELECT ENAME,SALARY FROM (SELECT ENAME,SAL FROM EMP ORDER BY SALARY DESC ) WHERE ROWNUM<6;

Is This Answer Correct ?    77 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc

3223


What is sql injection vulnerability?

488


How to run sql statements through the web interface?

500


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

500


What is crud stand for?

557






How is indexing done in search engines?

517


How to combine two stored procedures in sql?

580


What steps server process has to take to execute an update statement?

496


What is left join example?

494


How delete all records from table in sql?

546


What does pl sql developer do?

502


What are %type and %rowtype for?

602


What is mutating error?

502


What is scalar and vector?

519


Is postgresql a server?

567