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 DB_NAME(), 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