Reputation: 110093
Is there a way to 'hide' the percentage column in the following query?
SELECT
((SUM(is_correct) / COUNT(*)) * 100) percentage, worker_id
FROM
main_mturklog
GROUP BY
worker_id HAVING percentage < 80
Basically, I only want to view the worker_id
in the result.
Upvotes: 0
Views: 1809
Reputation: 204746
SELECT
worker_id
FROM
main_mturklog
GROUP BY
worker_id
HAVING ((SUM(is_correct) / COUNT(*)) * 100) < 80
Upvotes: 3