DELETE FROM DECODE_FILIALE_IDLISTINO;
DELETE FROM DECODE_FILIALE WHERE TABLE_NAME='ARTICOLI' AND IDFILIALE IN (
SELECT IDFILIALE FROM DECODE_FILIALE WHERE TABLE_NAME='ARTICOLI' GROUP BY IDFILIALE HAVING COUNT(*) > 1);

COMMIT;
DELETE DECODE_FILIALE_IDPREZZO;
COMMIT;
