Open posts with closed votes by year


Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS Meta

Q&A about the site for administrators, end users, developers and designers for Craft CMS

DECLARE @year int = ##year##

select AS [Post Link],
  count( TotalVotes
from posts p
inner join votes v
  on = v.postid
where v.votetypeid = 6
  and p.closeddate is null
  and year(p.creationdate) = @year
  and p.viewcount < 100 
group by
order by totalvotes desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results