사업자별 통계 퍼센테이지 수정

This commit is contained in:
kimjhjjang
2022-12-08 17:57:48 +09:00
parent 052730e0e2
commit a6402b1d19

View File

@@ -586,19 +586,19 @@
, t1.BIZRNO AS bizrno
, SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) AS sndCnt
, SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) AS succCnt
, TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2) as succRt
, IFNULL(TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2),0) as succRt
, SUM(t2.sndCntS) AS sndCntS
, SUM(t2.succCntS) AS succCntS
, SUM(t2.succRtS) AS succRtS
, IFNULL(TRUNCATE((SUM(t2.succCntS) / SUM(t2.sndCntS)) * 100, 2), 0) AS succRtS
, SUM(t2.sndCntL) AS sndCntL
, SUM(t2.succCntL) AS succCntL
, SUM(t2.succRtL) AS succRtL
, IFNULL(TRUNCATE((SUM(t2.succCntL) / SUM(t2.sndCntL)) * 100, 2), 0) AS succRtL
, SUM(t2.sndCntM) AS sndCntM
, SUM(t2.succCntM) AS succCntM
, SUM(t2.succRtM) AS succRtM
, IFNULL(TRUNCATE((SUM(t2.succCntM) / SUM(t2.sndCntM)) * 100, 2), 0) AS succRtM
, SUM(t2.sndCntR) AS sndCntR
, SUM(t2.succCntR) AS succCntR
, SUM(t2.succRtR) AS succRtR
, IFNULL(TRUNCATE((SUM(t2.succCntR) / SUM(t2.sndCntR)) * 100, 2), 0) AS succRtR
from (
<!-- 추가분 (시작) -->
SELECT
@@ -1006,19 +1006,19 @@
, t1.BIZRNO AS BIZRNO
, SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) AS SND_CNT
, SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) AS SUCC_CNT
, TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2) as SUCC_RT
, IFNULL(TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2),0) as SUCC_RT
, SUM(t2.sndCntS) as SND_CNT_S
, SUM(t2.succCntS) as SUCC_CNT_S
, SUM(t2.succRtS) as SUCC_RT_S
, IFNULL(TRUNCATE((SUM(t2.succCntS) / SUM(t2.sndCntS)) * 100, 2), 0) as SUCC_RT_S
, SUM(t2.sndCntL) as SND_CNT_L
, SUM(t2.succCntL) as SUCC_CNT_L
, SUM(t2.succRtL) as SUCC_RT_L
, IFNULL(TRUNCATE((SUM(t2.succCntL) / SUM(t2.sndCntL)) * 100, 2), 0) as SUCC_RT_L
, SUM(t2.sndCntM) as SND_CNT_M
, SUM(t2.succCntM) as SUCC_CNT_M
, SUM(t2.succRtM) as SUCC_RT_M
, IFNULL(TRUNCATE((SUM(t2.succCntM) / SUM(t2.sndCntM)) * 100, 2), 0) as SUCC_RT_M
, SUM(t2.sndCntR) as SND_CNT_R
, SUM(t2.succCntR) as SUCC_CNT_R
, SUM(t2.succRtR) as SUCC_RT_R
, IFNULL(TRUNCATE((SUM(t2.succCntR) / SUM(t2.sndCntR)) * 100, 2), 0) as SUCC_RT_R
from (
<!-- 추가분 (시작) -->
SELECT