교육감 0 문제 수정
This commit is contained in:
@@ -239,7 +239,7 @@
|
|||||||
END)
|
END)
|
||||||
) V(cluster)
|
) V(cluster)
|
||||||
WHERE option_cd = '02'
|
WHERE option_cd = '02'
|
||||||
AND cand_party = 'CAND'
|
--AND cand_party = 'CAND'
|
||||||
AND area_cd = '16'
|
AND area_cd = '16'
|
||||||
AND T.cluster IN ('1', '2', '3', '4')
|
AND T.cluster IN ('1', '2', '3', '4')
|
||||||
AND V.cluster IS NOT NULL
|
AND V.cluster IS NOT NULL
|
||||||
@@ -248,7 +248,7 @@
|
|||||||
SELECT area_cd, cand_party, '9'+cluster, cand_party_cd, CONVERT(NUMERIC(4,1),
|
SELECT area_cd, cand_party, '9'+cluster, cand_party_cd, CONVERT(NUMERIC(4,1),
|
||||||
case when ISNULL(SUM(sum_cnt), 0) = 0 then 0 else ISNULL(SUM(cnt), 0) / ISNULL(SUM(sum_cnt), 0) * 100 end) AS sect_rate
|
case when ISNULL(SUM(sum_cnt), 0) = 0 then 0 else ISNULL(SUM(cnt), 0) / ISNULL(SUM(sum_cnt), 0) * 100 end) AS sect_rate
|
||||||
FROM exitpoll.dbo.TMP_OUTPUT_DDAY WHERE option_cd = '02'
|
FROM exitpoll.dbo.TMP_OUTPUT_DDAY WHERE option_cd = '02'
|
||||||
and cand_party = 'CAND'
|
--and cand_party = 'CAND'
|
||||||
and area_cd <> '16'
|
and area_cd <> '16'
|
||||||
GROUP BY area_cd, cand_party, '9'+cluster, cand_party_cd
|
GROUP BY area_cd, cand_party, '9'+cluster, cand_party_cd
|
||||||
) A LEFT JOIN (
|
) A LEFT JOIN (
|
||||||
|
|||||||
Reference in New Issue
Block a user