有没有办法在以下查询中“隐藏”百分比列?
SELECT
((SUM(is_correct) / COUNT(*)) * 100) percentage, worker_id
FROM
main_mturklog
GROUP BY
worker_id HAVING percentage < 80
基本上,我只想在结果中查看worker_id
。
答案 0 :(得分:3)
SELECT
worker_id
FROM
main_mturklog
GROUP BY
worker_id
HAVING ((SUM(is_correct) / COUNT(*)) * 100) < 80