Skip to Main Content

Analytics Software

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!

Not Exists function in Answers

728768Apr 9 2010 — edited Apr 9 2010
Hi guys

I have below mentioned query in sql.... but i need to create report using that sql...... can anyone help me how to create answer using this sql.
select p.mnth_yr,
count(p.code)
from f_fact P
where substr(mnth_yr,4)='2009'
and p.st='L'
and not exists (select 1 from f_fact x
where nvl(x.p_cd,'Z') = nvl(p.p_cd,'Z')
and x.code = p.code
and x.st in ('A','B'))
group by p.mnth_yr
Thanks

Edited by: user11933655 on 09-Apr-2010 03:37
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details