如何隐藏mysql中的列

时间:2014-11-10 23:23:33

标签: mysql

有没有办法在以下查询中“隐藏”百分比列?

SELECT 
    ((SUM(is_correct) / COUNT(*)) * 100) percentage, worker_id 
FROM 
    main_mturklog 
GROUP BY 
    worker_id HAVING percentage < 80

基本上,我只想在结果中查看worker_id

1 个答案:

答案 0 :(得分:3)

SELECT 
    worker_id 
FROM 
    main_mturklog 
GROUP BY 
    worker_id 
HAVING ((SUM(is_correct) / COUNT(*)) * 100) < 80