What do you mean when you say "...in a select statement"?
If your order_detail table is set up such that is has:
<font color=blue>
order_num
order_item
order_qty
</font>
then you can sum quantities for all items with:
<font color=blue>
SELECT sum(order_qty) AS totalqty FROM order_detail where order_num=$ordnum
</font>
where $ordnum is a variable holding the given order number.
-- Rich