create table TB_USC_FLW_erro as
select flw.flow_id
from TB_USC_MONTHLY_BALANCE_DTL_FLW flw
where flw.account_period = '201801'
and flw.flow_id not in
(select flow.flow_id
from tb_usc_material_flow flow
where flow.create_date >=
(select cal.start_date
from TB_USC_MONTHLY_BALANCE_CAL cal
where cal.account_period = '201801')
and flow.create_date <=
(select cal.end_date
from TB_USC_MONTHLY_BALANCE_CAL cal
where cal.account_period = '201801'))