Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation
-- UserId: User ID DECLARE @UserId int = ##UserId:int##; SELECT answers.Id as [Post Link] FROM Posts as answers INNER JOIN Posts as questions ON answers.ParentId = questions.Id WHERE answers.OwnerUserId = @UserId AND questions.ClosedDate IS NOT NULL ORDER BY answers.CreationDate DESC