------------ VIEW MONITORAGGIO_COM_NOW_DBCFX_CRM ------------

CREATE
OR REPLACE VIEW MONITORAGGIO_COM_NOW_DBCFX_CRM AS
SELECT UNIQUE_ID,
       ID_RICHIESTA,
       CODICE_RICHIESTA,
       INBOUND_OUTBOUND,
       SISTEMA_IN_OUT,
       COD_TIPO_COMUNICAZIONE,
       DESC_TIPO_COMUNICAZIONE,
       DELIBERA,
       ESITO_NOTIFICA,
       DATA_INV_NOT_DA_DBCFX,
       DATA_RIC_NOT_SU_DBCFX,
       DATA_NOTIFICA,
       CODICE_ORDINE_OLO,
       DATA_ORDINE_OLO,
       CODICE_ORDINE_TI,
       DATA_ORDINE_TI,
       DN,
       ID_RISORSA,
       NOME_FILE_INVIATO_A_NOW,
       NOME_FILE_RICEVUTO_DA_NOW,
       COD_OPERATORE_RECIPIENT,
       COD_OPERATORE_DONOR,
       COD_OPERATORE_DONATING,
       DAC,
       DES,
       DAC_RIMODULATA,
       BID,
       UNIQUE_ID_NOW,
       UNIQUE_ID_CRM_NOTIFY,
       UNIQUE_ID_CRM,
       UNIQUE_ID_NOW_NOTIFY,
       DATA_FILTRO
FROM (
         -- DEL 274
         SELECT *
         FROM DEL274_NOW_TO_DBCFX_REGOL
         UNION
         SELECT *
         FROM DEL274_NOW_TO_DBCFX_XDSL
         UNION
         SELECT *
         FROM DEL274_DBCFX_TO_CRM_REG
         UNION
         SELECT *
         FROM DEL274_NOW_DBCFX_VERFASE2
         UNION
         SELECT *
         FROM DEL274_DBCFX_NOW_VERFASE2
         UNION
         -- DEL 35
         SELECT *
         FROM DEL35_FENP_DBCFX_PRE_RDAC_ESPL
         UNION
         SELECT *
         FROM DEL35_DBCFX_CRM_VERIFICACS
         UNION
         SELECT *
         FROM DEL35_DBCFX_DBSS_VERIFICACS
         UNION
         SELECT *
         FROM DEL35_CRM_DBCF_VERIFICACS_RESP
         UNION
         SELECT *
         FROM DEL35_DBC_FENP_VERCS_OLO_CRM
         UNION
         SELECT *
         FROM DEL35_DBC_FENP_VERCS_OLO_DBSS
         UNION
         SELECT *
         FROM DEL35_DBC_FENP_VERCS_NATI_CRM
         UNION
         SELECT *
         FROM DEL35_DBC_FENP_VERCS_NATI_DBSS
         UNION
         SELECT *
         FROM DEL35_DBCFX_CRM_PRE_RDAC_ESPL
         UNION
         SELECT *
         FROM DEL35_CESS_FENP_DBCFX_TC12
         UNION
         SELECT *
         FROM DEL35_CESS_DBCFX_CRM
         UNION
         SELECT *
         FROM DEL35_CESS_DBCFX_FENP
         UNION
         SELECT *
         FROM DEL35_CESS_NATOLO_CRM_DBCFX
         UNION
         SELECT *
         FROM DEL35_DBCFX_FENP_CESS_OLO_COM8
         UNION
         -- DEL 103
         SELECT *
         FROM D103_FENP_DBCFX_PRE_RDAC_ESPL
         UNION
         SELECT *
         FROM DEL103_DBC_FENP_VERCS_NAT_CRM
         UNION
         SELECT *
         FROM DEL103_DBC_FENP_VERCS_NAT_DBSS
         UNION
         SELECT *
         FROM DEL103_CESS_NATOLO_CRM_DBCFX
         UNION
         SELECT *
         FROM DEL103_DBCFX_FENP_CESS_OLO_TC8
         UNION
         SELECT *
         FROM DEL103_DBSS_ESPL_DON_IN_TC14
         UNION
         SELECT *
         FROM DEL103_CRM_ESPL_DON_IN_TC14
         --DEL274_DBCFX_TO_CRM_XDSL
         --DEL35_DBCFX_FENP_VERCS_NATOLO
         --DEL35_DBCFX_FENP_VERCS_NATI
     )
;