34,593
社区成员
发帖
与我相关
我的任务
分享
select a,sum(b) from(select a,b from a union all select a,b from b) a group by a
codeselect a,sum(b) from(select a,b from a union all select a,b from b) a group by a having sum(b)>20
select a,sum(b) b from(select a,b from a union all select a,b from b) a group by a having sum(b) >20