17,086
社区成员
发帖
与我相关
我的任务
分享
select zzny.facility_id,
zzny.u_name,
zzny.nf year,
zzny.yd month,
nvl(hgl.lckhgl, 0)*100 lckhgl
from (select facility_id, u_name, year, month, yxts, total, bhgs, lckhgl
from ZZ_LIMS_Y_LCKHGL) hgl,
(select zz.facility_id, zz.u_name, ny.nf, ny.yd
from base_facility_tb zz,
(select distinct nf, yd from gygl_zzcbpwl_view) ny) zzny
where hgl.facility_id(+) = zzny.facility_id
and hgl.year(+) = zzny.nf
and hgl.month(+) = zzny.yd