select order_num
from OrderItems
group by order_num
having sum(quantity) >= 100

知识点:
分组后使用having进行结果集的筛选