All my answers

4

Please login or register to vote for this query.

(click on this box to dismiss)

All my answers on the site

Gardening and Landscaping Meta

Q&A about the site for gardeners and landscapers

-- 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.Score DESC, a.CreationDate DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results