题解 | #商品交易(网易校招笔试真题)#

商品交易(网易校招笔试真题)

http://www.nowcoder.com/practice/f257dfc1b55e42e19eec004aa3cb4174

SELECT id, name, weight, total
FROM
(SELECT goods_id, SUM(count) AS 'total'
FROM trans
GROUP BY goods_id) t,
goods g
WHERE weight < 50 AND total > 20 AND t.goods_id = g.id
ORDER BY id;
全部评论

相关推荐

CrazyBucket:我今天下午也做梦在招聘会上面试一家小厂,给自己气笑了
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务