Inactive Users Per Year

0

Please login or register to vote for this query.

(click on this box to dismiss)

Where "inactive" is defined as "haven't logged on in the past year".

Physics

Q&A for active researchers, academics and students of physics

SELECT 
  datepart(yyyy, [LastAccessDate]) AS 'Year Inactive',
  COUNT(Id) AS 'Total'
FROM Users
WHERE LastAccessDate < '2021-12-31'
GROUP BY datepart(yyyy, [LastAccessDate])
ORDER BY [Year Inactive]

SELECT 
  datepart(yyyy, [CreationDate]) AS 'Year Created',
  COUNT(Id) AS 'Total'
FROM Users 
GROUP BY datepart(yyyy, [CreationDate])
ORDER BY [Year Created]

Enter Parameters

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