Percent Users Active In Last 30 Days

2

Please login or register to vote for this query.

(click on this box to dismiss)

History of Science and Math

Q&A for people interested in the history and origins of science and mathematics

-- Enter Query Title
-- Enter Query Description

(Select Count(*) FROM Users WHERE DATEDIFF(day,LastAccessDate, GETDATE()) < 30 And (SELECT Count(*) FROM Posts WHERE (Posts.OwnerUserId = Users.Id) AND (DATEDIFF(day, CreationDate, GETDATE()) < 30)) > 1) --pople active in the last thirty days who posted itleast one post in the last thirty days
(SELECT Count(*) FROM Users WHERE DATEDIFF(day,LastAccessDate, GETDATE()) < 30) --users visited in last 30 days
(SELECT Count(*) FROM Users WHERE DATEDIFF(day,LastAccessDate, GETDATE()) > 30) --users who haven't visited in last 30 days
(SELECT Count(*) FROM Users) -- total users

Enter Parameters

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