use pdv;
delete from r07 where datafinal < '2017-09-30';
delete from relatoriofec where data < '2017-09-30';
delete from r06 where datafinal < '2017-09-30';
delete from r05 where dataemissao < '2017-09-30';
delete from r04 where dataemissao < '2017-09-30';
delete from r03 where datamov < '2017-09-30';
delete from r02 where dataemissao < '2017-09-30';
delete from r01 where data < '2017-09-30';
