Saya pikir Anda ingin memfilter grup. Gunakan HAVING COUNT(*)
bukannya WHERE
:
SELECT Id, QId, UName, Ans, Date, Count(*) * 10 as Total
FROM question
GROUP BY UName
HAVING Count(*)
Jika Anda ingin mengurutkan grup berdasarkan jumlah elemen, gunakan ORDER BY
:
SELECT Id, QId, UName, Ans, Date, Count(*) * 10 as Total
FROM question
GROUP BY UName
ORDER BY Count(*) DESC