how will I find the first 5 highest salaried employees in
each dept in oracle.

Answer Posted / sunil panghal

select rownum as row_id,salary from (select salary from
employees order by salary) where rownum <6;

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?

1805


Explain index?

747


If youre unsure in which script a sys or system-owned object is created, but you know its in a script from a specific directory, what UNIX command from that directory structure can you run to find your answer?

1659


Why is oracle used?

557


How to connect ms access to oracle servers?

552






What are the oracle differences between nvl and coalesce

516


Explain the use of analyse option in exp command.

588


What is tns entry?

621


Explain an index segment?

641


What are the parameters that we can pass through a stored procedure?

553


i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?

1470


How to define and use table alias names in oracle?

508


What is catalog in Oracle?

649


How do I know if oracle is installed on windows?

486


Can you have more than one content canvas view attached with a window ?

1815