Jeg tror, du ville filtrere grupper. Brug HAVING COUNT(*)
i stedet for WHERE
:
SELECT Id, QId, UName, Ans, Date, Count(*) * 10 as Total
FROM question
GROUP BY UName
HAVING Count(*)
Hvis du skal sortere grupper efter antal elementer, så brug ORDER BY
:
SELECT Id, QId, UName, Ans, Date, Count(*) * 10 as Total
FROM question
GROUP BY UName
ORDER BY Count(*) DESC