select sum(stock) from ona_item where s_cd='04' and (itemtype='B' or itemtype = 'D') and stock>0
°Ë»öµÈ »óǰÀÌ ¾ø½À´Ï´Ù.