程序代码:
select sum(tot_tab.[发货数量]) as [发货数量汇总] from ( SELECT SUM(19007) AS[发货数量] FROM 19AX00 WHERE 19011>='2022-1-1' AND 19011<='2022-3-31' union SELECT SUM(23007) AS[发货数量] FROM 23AX00 WHERE 23011>='2022-1-1' AND 23011<='2022-3-31' ) tot_tab
[此贴子已经被作者于2022-3-28 22:31编辑过]