LeetCode(数据库)- Orders With Maximum Quantity Above Average
Posted 程序员牧码
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LeetCode(数据库)- Orders With Maximum Quantity Above Average相关的知识,希望对你有一定的参考价值。
题目链接:点击打开链接
题目大意:略。
解题思路:略。
AC 代码
SELECT order_id
FROM OrdersDetails
GROUP BY order_id
HAVING MAX(quantity) > ALL(SELECT AVG(quantity) FROM OrdersDetails GROUP BY order_id)
以上是关于LeetCode(数据库)- Orders With Maximum Quantity Above Average的主要内容,如果未能解决你的问题,请参考以下文章
LeetCode(数据库)- Orders With Maximum Quantity Above Average
build a real-time analytics dashboard to visualize the number of orders getting shipped every minute