How many users were created last month?

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

EXEC dbo.sede_ineachdb @SQLCommand = N'
  SELECT SiteName = [$site_name$],
         NewUsers = COUNT(*) 
    FROM Users
   WHERE CreationDate >= DATE_BUCKET(MONTH, 2, GETDATE())
     AND CreationDate <  DATE_BUCKET(MONTH, 1, GETDATE());';

Enter Parameters

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