ausers_answers

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drones and Model Aircraft Meta

Q&A for experienced flyers, pilots, and builders of drones and model aircraft

DECLARE @Today datetime = '2018-11-07'

SELECT COUNT( DISTINCT u.Id ) 
FROM (
      SELECT top 5000 Users.Id, Users.Reputation
      FROM Users
      WHERE DATEDIFF(month, Users.CreationDate, @Today) > 6
            AND DATEDIFF(year, Users.CreationDate, @Today) < 3
            AND Users.Id >= 1
     ) AS u
     LEFT OUTER JOIN Posts ON u.Id = Posts.OwnerUserId
WHERE Posts.PostTypeId IN (1, 2);

Enter Parameters

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