Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: unexpected merge cartesian join

Re: unexpected merge cartesian join

From: <nicola.farina_at_info-line.it>
Date: 1 Dec 2005 09:11:53 -0800
Message-ID: <1133457113.455465.102200@z14g2000cwz.googlegroups.com>


Sorry yes v_filter_254 is a view of views but I didnt post the whole structure
because is quite complex.
Anyway I will try to post...

This is v_filter_254

CREATE OR REPLACE VIEW V_FILTER_254 AS
SELECT V1.ID,V1.ID as F2226,V2.ID as F1,V1.DESCRIZIONE as F2227,V2.ID_CORSO as F32,m3.DD_VALORE_STRINGA as F184,V4.DESCRIZIONE as

X184,V2.ANNORIFERIMENTO as F520,m5.DD_VALORE_STRINGA as
F522,m6.NR_VALORE_INTERO as F298,T7.DD_DESCRIZIONE as
X298,V1.NR_IMPORTO_INT_PRES_EDIZIONE as F3153,V1.NR_IMPORTO_INT_EFF_SUM
as F3154,V1.NR_IMPORTO_INT_PRES_SUM as
F3155,V1.NR_IMPORTO_INT_EFF_EDIZIONE as F3152  FROM V_CORSO_INTERNO V1,V_A_CORSO V2,M_VAL_STR m3,V_DIPARTIMENTI V4,M_VAL_STR m5,M_VAL_INT m6,T_AVANZAMENTO_CORSO T7  WHERE
V2.ID (+) = V1.ID
 and
m3.ct_master (+) = V2.id and m3.ca_table_catalogo (+) = 184 and m3.dt_inizio (+) <=
To_Date(SYS_CONTEXT('userenv','client_info'),'dd/mm/yyyy') and m3.dt_fine (+) >=
To_Date(SYS_CONTEXT('userenv','client_info'),'dd/mm/yyyy')  and
m3.DD_VALORE_STRINGA=V4.ID_CDCF (+)
 and
m5.ct_master (+) = V2.id and m5.ca_table_catalogo (+) = 522 and m5.dt_inizio (+) <=
To_Date(SYS_CONTEXT('userenv','client_info'),'dd/mm/yyyy') and m5.dt_fine (+) >=
To_Date(SYS_CONTEXT('userenv','client_info'),'dd/mm/yyyy')  and
m6.ct_master (+) = V2.id and m6.ca_table_catalogo (+) = 298 and m6.dt_inizio (+) <=
To_Date(SYS_CONTEXT('userenv','client_info'),'dd/mm/yyyy') and m6.dt_fine (+) >=
To_Date(SYS_CONTEXT('userenv','client_info'),'dd/mm/yyyy')  and
m6.NR_VALORE_INTERO=T7.ID (+)

Here v_corso_interno is another view

create or replace view v_corso_interno as select ac.ID_OUVERTURE as ID,

       ac.DESCRIZIONE,
       vcsib.nr_importo_int_pres_sum,
       vcsib.nr_importo_int_eff_sum,
       vcsib.nr_importo_int_pres_edizione,
       vcsib.nr_importo_int_eff_edizione
  from a_corso ac,
       v_corsi_spese_int_base vcsib

 where ac.cd_tipo = 'I'
   and vcsib.cv_corsi_edizioni (+) = ac.id_ouverture

where v_costi_spese_int_base is

create or replace view v_corsi_spese_int_base as select
  vsc.cv_corsi_edizioni,

v_corsi_edizioni is
create or replace view v_corsi_edizioni as

select ac.id,
       ac.id_master,
       ac.descrizione as dd_descrizione,
       ac.ct_assenza,
       ac.id ca_corso,
       ac.id_corso

    from v_a_corso ac

v_a_Corso is
create or replace view v_a_corso as

select A.id_ouverture as ID_MASTER,
       A.id_ouverture as ID,
       A.ID as ID_CORSO,
       A.DESCRIZIONE,
       A.CD_TIPO,
       A.CD_REGIONALE,
       A.ANNORIFERIMENTO,
       A.DT_INIZIO,
       A.DT_FINE,
       A.CT_CAUSALE_OROLOGIO,
       A.NR_DURATA_GIORNI,
       A.NR_DURATA_ORE,
       A.NR_CREDITO_FORMATIVO,
       A.CT_ENTE,
       A.CT_ASSENZA,
       A.CD_DELIBERA,
       A.DT_DELIBERA,
       A.CD_TIPO_CORSO,
       A.DT_RIFERIMENTO,
       A.CT_TIPOLOGIA_CORSO

  from A_CORSO A

v_spese_corso is
create or replace view v_spese_corso as

select vsca.id,
       vsca.id as id_master,
       vsca.ct_corso_spesa_motivo,
       vsca.nr_importo,
       vsca.nr_importo_eff,
       vsca.cv_corsi_edizioni

  from v_spese_corso_appoggio vsca

v_Spese_corso_appoggio is
create or replace view v_spese_corso_appoggio as

select msc.id,
       msc.ct_corso_spesa_motivo,
       msc.nr_importo,
       msc.nr_importo_eff,
       msc.cv_corsi_edizioni

  from m_spese_corso msc

And so on... Received on Thu Dec 01 2005 - 11:11:53 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US