select to_char(rq,'yyyy-mm-dd'), sum(money1),sum(money2)
from
( select rq, money1, 0 money2 from a
union all
select rq, 0 money1, money2 from b
)
group by rq
from
( select rq, money1, 0 money2 from a
union all
select rq, 0 money1, money2 from b
)
group by rq
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货