|
@@ -18,10 +18,9 @@
|
|
|
where GDXF2 in (506, 507)
|
|
|
and to_char(DJSJ, 'yyyymm') between #{startMonth} and #{endMonth}
|
|
|
group by to_char(DJSJ, 'yyyymm'))
|
|
|
- select materRead,
|
|
|
- MONTH_PLAN monthPlan,
|
|
|
- nvl(mistake, 0) mistake,
|
|
|
- round((materRead - nvl(mistake, 0)) / materRead * 100, 2) accuracy
|
|
|
+ select sum(materRead) materRead,
|
|
|
+ nvl(sum(mistake), 0) mistake,
|
|
|
+ round((sum(materRead) - nvl(sum(mistake), 0)) / sum(materRead) * 100, 2) accuracy
|
|
|
from (select count(*) materRead, MONTH_PLAN
|
|
|
from TF_YWPN_READMETERHIS_W
|
|
|
where MONTH_PLAN between #{startMonth} and #{endMonth}
|