begin;
delete from symbol_info_f using symbol_info_f,symbol_info_t  where last_update < curdate() - interval 14 day and symbol_info_t.symbol = symbol_info_f.symbol and protected="N";
delete from symbol_info_t  where last_update < curdate() - interval 14 day;
commit;
