17,377
社区成员
发帖
与我相关
我的任务
分享
--查询到 pac_period_id 期间
select pac_period_id from
(
select cpp.pac_period_id,cpp.period_name
from cst_pac_periods cpp
where cpp.legal_entity = 102
order by cpp.pac_period_id desc)
where rownum=1 ;
union all
--查询到material_id,material_price物料编码和价格
select tpam.material_id
,tpam.material_price
from tg_purchase_acc_materials tpam
where tpam.material_desc = '银'
and tpam.status = 'Active';
-- status ENTRY 状态情况