|
@ -30,8 +30,9 @@ |
|
|
SELECT |
|
|
SELECT |
|
|
id, customer_id, agency_id, grid_id, year_id, month_id, user_id, |
|
|
id, customer_id, agency_id, grid_id, year_id, month_id, user_id, |
|
|
COUNT(*) quantity, |
|
|
COUNT(*) quantity, |
|
|
ROUND(AVG(score),2) score, |
|
|
ROUND(AVG(score),1) score, |
|
|
index_code, all_parent_index_code, weight |
|
|
index_code, all_parent_index_code, |
|
|
|
|
|
ROUND(weight,2) weight |
|
|
FROM fact_index_cpc_sub_score |
|
|
FROM fact_index_cpc_sub_score |
|
|
WHERE ALL_PARENT_INDEX_CODE = #{allParentIndexCode} |
|
|
WHERE ALL_PARENT_INDEX_CODE = #{allParentIndexCode} |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|