You are on page 1of 1

//update ed.

imp_bolle set importato = 'N' where nr_bolla in (


//select distinct nr_bolla from ed.imp_bolle where data_bolla >=
to_date('01/03/2022', 'dd/mm/yyyy') and log like '%già certificato%');
//
////select dtboll from pgmr.bolla_test where freplic = 'S' and dtboll >=
to_date('01/03/2022', 'dd/mm/yyyy') ;
////update pgmr.bolla_test set freplic = 'N' where dtboll >= to_date('01/03/2022',
'dd/mm/yyyy') ;
//commit;
//select * from pgmr.dipartimenti;
select MIN(ID),MAX(ID), importato, cddipa, count(*) from ed.imp_bolle where
data_bolla >= to_date('01/03/2022', 'dd/mm/yyyy') and importato <> 'S' group by
cddipa, importato;
//SELECT * FROM PGMR.DIPARTIMENTI;
//select * from ed.imp_bolle where nr_bolla = '33200583' ORDER BY ID;
//select freplic from pgmr.bolla_test where nr_bolla = '33200583';
//update ed.imp_bolle set importato = 'N'
//where NR_BOLLA IN (
//SELECT DISTINCT NR_BOLLA FROM ED.IMP_BOLLE WHERE data_bolla >=
to_date('01/03/2022', 'dd/mm/yyyy') and log like '%già certificato%' and importato
<> 'S' AND nr_bolla = '33200583';
//SELECT MAX(ID) FROM ED.IMP_BOLLE WHERE IMPORTATO = 'S'; 1695048
//COMMIT;
//COMMIT;

//SELECT COUNT(*) FROM ED.IMP_BOLLE WHERE CDDIPA = '03' AND IMPORTATO = 'N';
//SELECT MIN(ID) FROM ED.IMP_BOLLE WHERE IMPORTATO = 'N' AND CDDIPA = '03';

You might also like