사업자별통계 엑셀 다운로드 퍼센테이지 100% 이상 넘어가는 부분 수정

This commit is contained in:
kimjhjjang
2022-12-08 18:05:49 +09:00
parent a6402b1d19
commit a480a2e455

View File

@@ -780,13 +780,13 @@
, SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) AS sndCnt
, CONCAT(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR),'(',(TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2)),'%)') AS succCnt
, SUM(t2.sndCntS)
, CONCAT(SUM(t2.succCntS), '(', SUM(t2.succRtS), '%)') AS succCntS
, CONCAT(SUM(t2.succCntS), '(', IFNULL(TRUNCATE((SUM(t2.succCntS) / SUM(t2.sndCntS)) * 100, 2), 0), '%)') AS succCntS
, SUM(t2.sndCntL)
, CONCAT(SUM(t2.succCntL), '(', SUM(t2.succRtL), '%)') AS succCntL
, CONCAT(SUM(t2.succCntL), '(', IFNULL(TRUNCATE((SUM(t2.succCntL) / SUM(t2.sndCntL)) * 100, 2), 0) , '%)') AS succCntL
, SUM(t2.sndCntM)
, CONCAT(SUM(t2.succCntM), '(', SUM(t2.succRtM), '%)') AS succCntM
, CONCAT(SUM(t2.succCntM), '(', IFNULL(TRUNCATE((SUM(t2.succCntM) / SUM(t2.sndCntM)) * 100, 2), 0), '%)') AS succCntM
, SUM(t2.sndCntR)
, CONCAT(SUM(t2.succCntR), '(', SUM(t2.succRtR), '%)') AS succCntR
, CONCAT(SUM(t2.succCntR), '(', IFNULL(TRUNCATE((SUM(t2.succCntR) / SUM(t2.sndCntR)) * 100, 2), 0), '%)') AS succCntR
from (
select SUM_YM
, USER_SEQ
@@ -1200,13 +1200,13 @@
, SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) AS SND_CNT
, CONCAT(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR),'(',(TRUNCATE(SUM(t2.succCntS + t2.succCntL + t2.succCntM + t2.succCntR) / SUM(t2.sndCntS + t2.sndCntL + t2.sndCntM + t2.sndCntR) * 100, 2)) , '%)') AS SUCC_CNT
, SUM(t2.sndCntS) as SND_CNT_S
, CONCAT(SUM(t2.succCntS),'(', SUM(t2.succRtS), '%)') as SUCC_CNT_S
, CONCAT(SUM(t2.succCntS), '(', IFNULL(TRUNCATE((SUM(t2.succCntS) / SUM(t2.sndCntS)) * 100, 2), 0), '%)') as SUCC_CNT_S
, SUM(t2.sndCntL) as SND_CNT_L
, CONCAT(SUM(t2.succCntL), '(', SUM(t2.succRtL), '%)') as SUCC_CNT_L
, CONCAT(SUM(t2.succCntL), '(', IFNULL(TRUNCATE((SUM(t2.succCntL) / SUM(t2.sndCntL)) * 100, 2), 0) , '%)') as SUCC_CNT_L
, SUM(t2.sndCntM) as SND_CNT_M
, CONCAT(SUM(t2.succCntM), '(', SUM(t2.succRtM), '%)') as SUCC_CNT_M
, CONCAT(SUM(t2.succCntM), '(', IFNULL(TRUNCATE((SUM(t2.succCntM) / SUM(t2.sndCntM)) * 100, 2), 0), '%)') as SUCC_CNT_M
, SUM(t2.sndCntR) as SND_CNT_R
, CONCAT(SUM(t2.succCntR), '(', SUM(t2.succRtR), '%)') as SUCC_CNT_R
, CONCAT(SUM(t2.succCntR), '(', IFNULL(TRUNCATE((SUM(t2.succCntR) / SUM(t2.sndCntR)) * 100, 2), 0), '%)') as SUCC_CNT_R
from (
<!-- 추가분 (시작) -->
SELECT