How many users were created last month?

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

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 main site
loading Hold tight while we fetch your results