All my answers on the site
Q&A about the site for students, teachers, and linguists wanting to discuss the finer points of the Italian language
-- All my answers -- All my answers on the site DECLARE @UserId int = ##UserId## SELECT a.Id AS [Post Link], CASE WHEN q.AcceptedAnswerId=a.Id THEN 'Accepted' END AS Accepted, a.Score FROM Posts q INNER JOIN Posts a ON q.Id = a.ParentId WHERE a.OwnerUserId = @UserId AND a.PostTypeId = 2 ORDER BY a.CreationDate DESC