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 compiled query?

503


How do sql triggers work?

537


Does varchar need length?

506


Does pl sql work in mysql?

518


how to fetch common records from two tables? : Sql dba

608






What does a pl/sql package consist of?

502


how to use in conditions? : Sql dba

498


- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1371


When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?

613


What is a design view?

510


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

581


Explain alias in sql?

572


How do I run sql profiler?

571


What does select count (*) mean in sql?

532


What are the operators used in select statements?

562