Percent Users Active In Last 30 Days

2

Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

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