DECLARE @USER int = ##User##; SELECT 600 - COUNT(0) AS ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Woodworking

Q&A for professional and amateur woodworkers

-- Enter Query Title
-- Enter Query Description
DECLARE @USER int =  ##User##;

SELECT
   600 - COUNT(0) AS 'Edits until "Copy Editor"',
   100 - COUNT(0) AS 'Edits until "Strunk and White"',
   1 - COUNT(0) AS 'Edits until "Editor"'
FROM
   PostHistory
WHERE
   UserId = @User AND
   PostHistoryTypeId >= 4 AND
   PostHistoryTypeId <= 6;

Enter Parameters

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