View and votes per question

0

Please login or register to vote for this query.

(click on this box to dismiss)

Robotics Meta

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

select v.postid AS [Post Link], 
       p.creationdate as "Date",
       p.ViewCount as "Views",
       count(v.postid) as 'Vote count'
from votes v 
inner join posts p on p.id=v.postid
where PostTypeId = 1 and v.VoteTypeId in (2,3) and p.creationdate >= '2010-01-01' 
group by v.postid,p.ViewCount, p.creationdate
order by Date desc

Enter Parameters

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