create
or replace view del35_crm_dbcf_verificacs_resp
(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)
as
select SYS_GUID()                                  as UNIQUE_ID,
       null                                        AS ID_RICHIESTA,
       CAST(GCDI.codice_sessione AS varchar2(100)) AS CODICE_RICHIESTA,
       'INBOUND'                                   AS INBOUND_OUTBOUND,
       CAST('B' AS varchar2(100))                  AS SISTEMA_IN_OUT,
       null                                        AS TIPO_COMUNICAZIONE,
       null                                        AS DESC_TIPO_COMUNICAZIONE,
       'Del.35'                                    AS DELIBERA,
       CAST(GCDI.esito AS varchar2(100))           AS ESITO_NOTIFICA,
       null                                        AS DATA_INV_NOT_DA_DBCFX,
       CAST(GCDI.DATA_RICEZIONE AS varchar2(100))  AS DATA_RIC_NOT_SU_DBCFX,
       null                                        AS DATA_NOTIFICA,
       null                                        as CODICE_ORDINE_OLO,
       null                                        as DATA_ORDINE_OLO,
       null                                        as CODICE_ORDINE_TI,
       null                                        as DATA_ORDINE_TI,
       CAST(GCDI.dn AS varchar2(100))              as DN,
       null                                        as ID_RISORSA,
       null                                        as NOME_FILE_INVIATO_A_NOW,
       null                                        as NOME_FILE_RICEVUTO_DA_NOW,
       null                                        AS COD_OPERATORE_RECIPIENT,
       null                                        AS COD_OPERATORE_DONOR,
       null                                        AS COD_OPERATORE_DONATING,
       null                                        AS DAC,
       null                                        AS DES,
       null                                        AS DAC_RIMODULATA,
       null                                        AS BID,
       null                                        AS UNIQUE_ID_NOW,
       null                                        AS UNIQUE_ID_CRM_NOTIFY,
       CAST(GCDI.unique_id AS varchar2(100))       AS UNIQUE_ID_CRM,
       null                                           UNIQUE_ID_NOW_NOTIFY,
       GCDI.DATA_RICEZIONE                         AS DATA_FILTRO
from Gnp_Crmb_Donor_In GCDI;