Thanks for all the fish - accepted - date range

1

Please login or register to vote for this query.

(click on this box to dismiss)

"thanks" comments on accepted answers in a specified date range

Iota

Q&A for users of Iota, the open-source cryptocurrency for IoT that does not use a blockchain

SELECT
   C.Id as [Comment Link]
  ,Length = LEN(C.Text COLLATE Latin1_General_BIN)
FROM Comments C
JOIN Posts a ON a.Id = C.PostId
INNER JOIN Posts q ON q.Id = a.ParentId
WHERE
  a.PostTypeId = 2
  AND a.CommentCount < 3
  
  AND C.Text COLLATE Latin1_General_BIN LIKE '%[tT]hank%'

  AND LEN(C.Text COLLATE Latin1_General_BIN) <= 50
  AND DATEDIFF(DAY, C.CreationDate, GETDATE()) <  ##OldAge:int?8##
    AND DATEDIFF(DAY, C.CreationDate, GETDATE()) >= ##NewAge:int?1##
  AND q.AcceptedAnswerId IS NOT NULL
ORDER BY Length ASC
;

Enter Parameters

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