select id,name,weight,total from (goods g join (select goods_id sum(count) as total from trans t group by goods_id) b on g.id = b.goods_id ) c where c.weight<50 and c.total >20; 大神,我这样写有错误没?
点赞 评论

相关推荐

被加薪的哈里很优秀:应该继续招人,不会给你留岗位的
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务