Duplicate Questions Count for User Reputation Range

6

Please login or register to vote for this query.

(click on this box to dismiss)

Vegetarianism Meta

Q&A about the site for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

SELECT Count(*)
FROM (

  SELECT 
    (d.Id) as id
  FROM Posts d  -- d=duplicate
    LEFT JOIN PostHistory ph ON ph.PostId = d.Id
    LEFT JOIN PostLinks pl ON pl.PostId = d.Id
    LEFT JOIN Posts o ON o.Id = pl.RelatedPostId  -- o=original
    LEFT JOIN Users u ON u.id = d.OwnerUserId
  WHERE
    d.PostTypeId = 1  -- 1=Question
    AND pl.LinkTypeId = 3  -- 3=duplicate
    AND ph.PostHistoryTypeId = 10  -- 10=Post Closed
    AND u.Reputation < 0
    AND u.Reputation < 10
    
  ) as t1

Enter Parameters

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