Number of deleted and total questions for tag between deletion date

0

Please login or register to vote for this query.

(click on this box to dismiss)

Motor Vehicle Maintenance and Repair Meta

Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles

SELECT 
  (SELECT COUNT(*)
  FROM PostsWithDeleted
  WHERE PostTypeId = 1 -- Questions
  )
  AS 'Number of questions',
  COUNT(DeletionDate) AS 'Number of questions deleted'
  FROM PostsWithDeleted
  WHERE PostTypeId = 1 -- Questions
    AND DeletionDate BETWEEN ##fromDate:string## AND ##tillDate:string##
    AND Tags LIKE '%<' + ##tag:string## + '>%'

Enter Parameters

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