월별 통계 엑셀 다운로드 수정

This commit is contained in:
USER
2022-09-21 09:08:17 +09:00
parent a3fb4e5a2c
commit eaf348b117
3 changed files with 103 additions and 23 deletions

View File

@@ -673,20 +673,15 @@
, t1.CUST_NM AS custNm
, t1.BIZRNO AS bizrno
, (t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) AS sndCnt
, (t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) AS succCnt
, TRUNCATE((t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / (t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2) as succRt
, CONCAT((t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR),'(',(TRUNCATE((t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / (t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2)),'%)') AS succCnt
, t2.sndCntS
, t2.succCntS
, t2.succRtS
, CONCAT(t2.succCntS, '(', t2.succRtS, '%)') AS succCntS
, t2.sndCntL
, t2.succCntL
, t2.succRtL
, t2.sndCntM
, t2.succCntM
, t2.succRtM
, CONCAT(t2.succCntL, '(', t2.succRtL, '%)') AS succCntL
, t2.sndCntM
, CONCAT(t2.succCntM, '(', t2.succRtM, '%)') AS succCntM
, t2.sndCntR
, t2.succCntR
, t2.succRtR
, CONCAT(t2.succCntR, '(', t2.succRtR, '%)') AS succCntR
from (
select SUM_YM
, USER_SEQ
@@ -998,20 +993,15 @@
, t1.CUST_NM AS CUST_NM
, t1.BIZRNO AS BIZRNO
, (t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) AS SND_CNT
, (t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) AS SUCC_CNT
, TRUNCATE((t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / (t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2) as SUCC_RT
, CONCAT((t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR),'(',(TRUNCATE((t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / (t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2)) , '%)') AS SUCC_CNT
, t2.sndCntS as SND_CNT_S
, t2.succCntS as SUCC_CNT_S
, t2.succRtS as SUCC_RT_S
, CONCAT(t2.succCntS,'(', t2.succRtS, '%)') as SUCC_CNT_S
, t2.sndCntL as SND_CNT_L
, t2.succCntL as SUCC_CNT_L
, t2.succRtL as SUCC_RT_L
, CONCAT(t2.succCntL, '(', t2.succRtL, '%)') as SUCC_CNT_L
, t2.sndCntM as SND_CNT_M
, t2.succCntM as SUCC_CNT_M
, t2.succRtM as SUCC_RT_M
, CONCAT(t2.succCntM, '(', t2.succRtM, '%)') as SUCC_CNT_M
, t2.sndCntR as SND_CNT_R
, t2.succCntR as SUCC_CNT_R
, t2.succRtR as SUCC_RT_R
, CONCAT(t2.succCntR, '(', t2.succRtR, '%)') as SUCC_CNT_R
from (
select SUM_YMD
, USER_SEQ