select t.order_num from (select order_num,sum(quantity) as 'sum' from  OrderItems group by order_num) as t where t.sum >= 100 order by t.order_num