Q&A for Joomla! administrators, users, developers and designers
select displayname, count(case when score = 0 then 1 end) as 'Question with 0score',
count(case when score > 1 then 1 end) as 'Questions with 1+ score'
from users u join posts p on p.owneruserid = u.id
where posttypeid = 1
Group by displayname