engagement query

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

/* how many users posted during a given 30-day period */

DECLARE @startdate DATETIME = '2013-02-01'
DECLARE @enddate DATETIME = '2013-03-01'

SELECT Posts.Id AS [Post Link], Posts.CreationDate, Users.Id AS [User Link] FROM Posts 
JOIN Users ON Posts.OwnerUserId = Users.Id
WHERE Posts.CreationDate BETWEEN @startdate AND @enddate

Enter Parameters

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