Q&A about the site for expert genealogists and people interested in genealogy or family history
select postid as [Post Link], max(text), sum(500+round((datediff(day, comments.creationDate, current_timestamp)*1.0)/datediff(day, users.creationdate, current_timestamp)*1000.0,0) + score * -1000) as commentScore from comments join users on (comments.userid = users.id) where comments.userid = ##UserID## group by postid order by commentScore desc