SELECT COUNT(*) FROM information_schema.TABLES
 WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'ado_psd_op_actual';
SELECT COUNT(*) FROM mdp_entity
 WHERE entity_code = 'S2_PERIOD_SEQUENCE_SQLSERVER'
   AND biz_key_expr = 'Domain,WorkOrds,ItemNum,PlanDate,Line,Op,Period';