select posts.id, count(*) as total_upmod from posts left ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Robotics

Q&A for professional robotic engineers, hobbyists, researchers and students

select posts.id, count(*) as total_upmod
from posts 
left join votes on posts.id = votes.postid
left join votetypes on votes.votetypeid = votetypes.id
where votetypes.name = 'UpMod' and year(posts.creationDate) = 2018
group by posts.id
;

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results