Q&A for gamemasters and players of tabletop, paper-and-pencil role-playing games
SELECT TOP 10 h.PostId AS [Post Link], h.CreationDate AS 'Close date', ca2.Value AS [User Link] FROM PostHistory AS h CROSS APPLY ( (SELECT Value FROM OPENJSON( (SELECT Value FROM OPENJSON(h.Text) WHERE [Key] = 'Voters') )) ) AS ca1 CROSS APPLY ( (SELECT Value FROM OPENJSON(ca1.VALUE) WHERE [Key] = 'Id') ) AS ca2 WHERE h.PostHistoryTypeId = 10 -- Close AND h.Comment = 101 -- Exact Duplicate ORDER BY h.CreationDate DESC