Unix Technical Forum

Materialized View

This is a discussion on Materialized View within the Oracle Miscellaneous forums, part of the Oracle Database category; --> I am getting an error when I run the following query can any one help me create materialized view ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 10:26 AM
Don
 
Posts: n/a
Default Materialized View

I am getting an error when I run the following query can any one help
me

create materialized view mv_bigtab as
select A.DLQ_STATUS,
count(*) Count,
nvl((select nvl(sum(T.LOAN_AMT-T.PRINC_PAID),0) from ALMST
T,COLLHIST F where
T.MONTHS_DUE_TD < F.MONTHS_DUE and
T.ACC_CLOSED <> 'C' and T.LOAN_NO=F.LOAN_NO
and A.DLQ_STATUS=F.DLQ_STATUS and A.DLQ_STATUS=T.DLQ_STATUS),0)
Stab,
nvl((select nvl(sum(T.LOAN_AMT-T.PRINC_PAID),0) from ALMST
T,COLLHIST F where
T.MONTHS_DUE_TD > F.MONTHS_DUE and
T.ACC_CLOSED <> 'C' and T.LOAN_NO=F.LOAN_NO
and A.DLQ_STATUS>F.DLQ_STATUS and A.DLQ_STATUS=T.DLQ_STATUS
),0) Rf,
nvl((select nvl(sum(T.LOAN_AMT-T.PRINC_PAID),0) from ALMST
T,COLLHIST F where
T.MONTHS_DUE_TD < F.MONTHS_DUE and
T.ACC_CLOSED <> 'C' and T.LOAN_NO=F.LOAN_NO
and A.DLQ_STATUS<F.DLQ_STATUS and A.DLQ_STATUS=T.DLQ_STATUS),0)
Rb,
A.agency_code,
A.cas_code
from
almst A,collhist C
where
A.LOAN_NO=C.LOAN_NO and A.ACC_CLOSED <>'C'
group by
A.agency_code,A.cas_code,A.DLQ_STATUS

Regards
Don

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 10:27 AM
Brian Peasland
 
Posts: n/a
Default Re: Materialized View

Can you post the error messages with its complete text?

Thanks,
Brian

--
================================================== =================

Brian Peasland
oracle_dba@nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:46 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com