select 
    order_num,
    sum(item_price*quantity) total_price
from
    OrderItems
group by
    1
having
    total_price >= 1000
order by
    1