当前位置: 代码迷 >> Oracle认证考试 >> oracle笔试题
  详细解决方案

oracle笔试题

热度:167   发布时间:2016-04-24 03:46:53.0
oracle笔试题求助
这个要怎么写,


------解决思路----------------------

select GoodName 物品,
sum(decode(Cls,'进',Qty,0)) 进货数量,
sum(decode(Cls,'出',Qty,0)) 出货数量,
sum(decode(Cls,'进',Qty,'出',-Qty)) 当前库存
from GoodDt1
group by GoodName
  相关解决方案