Q&A for professionals, academics, and students working within the systems development life cycle
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