select g.id,g.name,g.weight,sum(t.count) from goods as g join trans as t on g.id=t.goods_id where g.weight<50 group by g.id,g.name,g.weight having sum(t.count)>20 order by g.id;
点赞

相关推荐

在笔试的柠檬精很想去...:兄弟们,你们这个大厂,中厂,小厂怎么定义的 初来驾到,别笑话我,只要能学到本事,不管大厂小厂都可以,但是别进到黑厂就行
找实习记录
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务