Hammer time

1

Please login or register to vote for this query.

(click on this box to dismiss)

Reverse Engineering Meta

Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation

SELECT CAST(JSON_VALUE(v.value, '$.Id') AS INT) AS [User Link], COUNT(*)
  FROM PostHistory AS ph
  CROSS APPLY OPENJSON(JSON_QUERY(ph.Text, '$.Voters')) AS v
  CROSS APPLY OPENJSON(JSON_QUERY(v.value, '$.BindingReason')) AS br
  WHERE ph.PostHistoryTypeId = 10 -- Closure
    AND br.[key] = 'GoldTagBadge'
  GROUP BY CAST(JSON_VALUE(v.value, '$.Id') AS INT)
  ORDER BY COUNT(*) DESC

Enter Parameters

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