Recent Long Answers

0

Please login or register to vote for this query.

(click on this box to dismiss)

Database Administrators

Q&A for database professionals who wish to improve their database skills and learn from others in the community

SELECT TOP 100 q.Id AS [Post Link], q.Tags, LEN(a.Body) AS AnswerLength, 
  a.Score, a.OwnerUserId AS [User Link]
  FROM dbo.Posts a
  JOIN dbo.Posts q ON a.ParentId = q.Id
  WHERE a.PostTypeId = 2
    AND a.DeletionDate IS NULL
    AND a.CreationDate >= DATEADD(dd, (-1 * ##DaysBack:int?30##), GETDATE())
    AND a.OwnerUserId NOT IN
      (SELECT TRY_CAST(value AS BIGINT) FROM STRING_SPLIT(##IgnoredUserIds:string?-1,26837,2639##, ','))
  ORDER BY LEN(a.Body) DESC;
  
-- IgnoredUserIds: Ignored UserIds "Comma-delimited list of IDs to ignore"
-- DaysBack: Days back to search "Integer. The further back you go, the longer this might take."

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results