--B表比A表多的數據
select * from ent_slf_expect_inventory_copy1 B where (
select count(1) as num from ent_slf_expect_inventory A where A.institution_id = B.institution_id
and B.product_id = A.product_id
and B.year_month = A.year_month
) = 0
--B表比A表多的數據
select * from ent_slf_expect_inventory_copy1 B where (
select count(1) as num from ent_slf_expect_inventory A where A.institution_id = B.institution_id
and B.product_id = A.product_id
and B.year_month = A.year_month
) = 0