GROUP BY
が必要です count
のような集計関数 またはsum
SELECT SCORE_PERSON_ID, sum(SCORE_VOTE) as score
FROM table
GROUP BY `SCORE_PERSON_ID`
GROUP BY
が必要です count
のような集計関数 またはsum
SELECT SCORE_PERSON_ID, sum(SCORE_VOTE) as score
FROM table
GROUP BY `SCORE_PERSON_ID`