select a.name,a.price+SUM(b.price) as price,a.id from A表 a left join ( select * from B表 union all select * from C表 union all select * from D表 )b on a.id = b.personid and b.iscal='true' group by a.name,a.price
[quote=引用 1 楼 yupeigu 的回复:] select a.name,a.price+SUM(b.price) as price,a.id from A表 a left join ( select * from B表 union all select * from C表 union all select * from D表 )b on a.id = b.personid and b.iscal='true' group by a.name,a.price
27,580
社区成员
68,544
社区内容
加载中
试试用AI创作助手写篇文章吧