are they the most interesting ones?
Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation
-- top 40 closed questions
-- are they the most interesting ones?
SELECT top 40
p.favoritecount, p.id, p.id as [Post Link]
FROM Posthistory h
INNER JOIN PosthistoryTypes t ON h.posthistorytypeid = t.id
INNER JOIN Posts p ON h.postid = p.id
t.name = 'Post Closed'
GROUP BY p.favoritecount, p.id
ORDER BY p.favoritecount DESC