--L'indicatore riporta il numero totale di notifiche di prese in carico --richieste MNP DONOR inviate giornalmente agli OLO Recipient. --I dati sono aggregati per: --OLO Recipient (WIND-H3GI-OPIV, etc.). --Sono prodotti tanti record riportanti ognuno il totale per quante --sono i possibili OLO Recipient. --Il record è prodotto anche nel caso il valore rilevato sia "zero". SET serveroutput on declare operatore varchar2(4); var_tipo_cliente varchar2(2); valore varchar2(255); data_val date; file1 UTL_FILE.file_type; freq varchar2(255):='&1'; cursor cur_operatore is select desc_olo from mnp_olo where flag_terze_parti=1; cursor cur_valore is select count(*), sysdate from mnp_xml_richiesta_out a, mnp_xml_out b where a.nome_file=b.nome_file and b.tipo_file='5' and b.numero_invii>=1 and b.da_inviare=0 and b.data_ultimo_invio>trunc(sysdate)-1/86400 and b.data_ultimo_invio