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

Answer Posted / vishnu

select level,max(sal) from emp
where level<=5
group by level
connect by prior sal>sal
order by level Asc;

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is foreign key sql?

746


What is sql integrity?

782


Is null operator in sql?

792


What are the two characteristics of a primary key?

667


Explain about various levels of constraint.

700






How to fetch alternate records from a table?

865


How do I access sql anywhere database?

672


What is sql*loader?

757


What is sql profiling in oracle?

739


How to look at the current sql*plus system settings?

763


How do you explain an index number?

744


What is the use of prepared statement?

749


What is the benefit of foreign key?

714


Is big data nosql?

692


Why does sql need a server?

760