Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Alternative for Analtyical function

ora_1978Nov 27 2017 — edited Nov 28 2017

I just like to know whether an alternative way is there for the below Analytical function and that too should give better performance compared to the Analytical function.

SELECT last_name FROM

   (SELECT last_name, ROW_NUMBER() OVER (partition by department_id ORDER BY last_name) R FROM employees)

   WHERE R =1;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2017
Added on Nov 27 2017
17 comments
2,646 views