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!

Having clause with Analytic function

user12093849Jun 18 2010 — edited Feb 6 2012
can you pls let me know if we can use HAVING clause with analytic function

select eid,empno,sum(sal) over(partition by year)
from employee
where dept = 'SALES'
having sum(sal) > 10000
I m getting error while using the above,

IS that we can use HAVING clause with partition by

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2012
Added on Jun 18 2010
7 comments
12,551 views