28 lines
751 B
SQL
28 lines
751 B
SQL
-- cancellazione record più vecchio del 2011
|
|
delete mnp_bit_in_rec b
|
|
where b.DATA_RICHIESTA < to_date('01012011','ddmmyyyy');
|
|
|
|
commit;
|
|
|
|
|
|
update mnp_fmsrisk_cessazione_out f
|
|
set id_richiesta = (
|
|
select id_richiesta
|
|
from mnp_gestione_richiesta r
|
|
where r.msisdn = f.msisdn
|
|
and r.codice_fiscale_partita_iva = f.cf_piva
|
|
and r.data_cut_over_calc = f.data_cut_over)
|
|
where f.data_inserimento < to_date('01012011','ddmmyyyy');
|
|
commit;
|
|
|
|
update mnp_fmsrisk_cessazione_out f
|
|
set id_richiesta = (
|
|
select id_richiesta
|
|
from mnp_gest_rich_rec_virt r
|
|
where r.msisdn = f.msisdn
|
|
and r.codice_fiscale_partita_iva = f.cf_piva
|
|
and r.data_cut_over_calc = f.data_cut_over)
|
|
where f.data_inserimento < to_date('01012011','ddmmyyyy');
|
|
|
|
commit;
|