Editor Badges Progress

0

Please login or register to vote for this query.

(click on this box to dismiss)

Counts the number of edits you made to posts

Stack Overflow

Q&A for professional and enthusiast programmers

-- Editor Badges Progress
-- Counts the number of edits you made to posts

DECLARE @UserId int = ##UserId##

SELECT DISTINCT
    COUNT(*) 
FROM 
    PostHistory ph 
  INNER JOIN 
    PostHistoryTypes pht ON ph.PostHistoryTypeId = pht.Id
WHERE 
    (pht.Name = 'Edit Title' 
  OR
    pht.Name = 'Edit Body' 
  OR
    pht.Name = 'Edit Tags')
  AND
    ph.UserId = @UserId

Enter Parameters

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