votes on all posts by a specific user

1

Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

select 
  pt.name PostType,
  vt.name VoteType,
  count(v.id) NumVotes
from posts p left join votes v on p.id=v.postid 
 left join votetypes vt on vt.id=v.votetypeid
 left join posttypes pt on pt.id=p.posttypeid
where p.owneruserid=##UserId##
and p.DeletionDate is null and p.closeddate is null
group by pt.name, vt.name
having count(v.id)>0
order by pt.name desc, vt.name desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results