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

Answer Posted / priya

SELECT Rownum,emp-name,salary
FROM(SELECT emp_name,salary
FROM employees
ORDER BY salary Desc)
WHERE Rownum<=5;

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dynamic query?

542


What is sql and its types?

625


Is sql a backend?

548


what are the advantages a stored procedure? : Sql dba

548


How to write a query to show the details of a student from students table whose

542






Can we call dml statement in function?

542


what are date and time data types in mysql? : Sql dba

502


Can we use threading in pl/sql?

519


what is rollback? : Sql dba

593


What is minus?

545


What is the difference between row level and statement level trigger?

521


Which is faster view or stored procedure?

505


What is pl sql block structure?

543


Explain the advantages and disadvantages of stored procedure?

649


What is a primary key sql?

561