Hi all,
I do weekly and monthly reports on Community usage in our organisation and would like to report on the top posters of ap articular month. Is this possible in CS2007 or is this only available with Harvest Reporting?
Could it be done via SQL?
Cheers!
Any data obtained by Harvest can be obtained through executing a SQL script against your database.
Try the folowing for size. N.B. requires dates in the British dd/mm/yy format, and only two digit year (although British date shouldnt' be a problem for you )
SELECT PostAuthor, COUNT(p.PostId) as PostCountFROM cs_Posts pWHERE (p.PostDate < CONVERT(DATETIME, N'31/08/08', 3)) AND (p.PostDate > CONVERT(DATETIME, N'01/08/06', 3)) AND (p.IsApproved = 1) AND (p.SectionID > 2) -- Exclude PMs (0), Reporting Forums (1) and Deleted Posts(2)GROUP BY p.PostAuthorORDER BY PostCount DESC
This will include all posts on the site (including weblog posts, comments, files etc). If you want to filter by a specific application type, you can add a AND (p.ApplicationType = X) to the WHERE statement. (Replace X with the appropiate integer value from cs_Applications)
Community Server Documentation please rate articles you read
Nintendo Wiikly | My Blog
Fantastic - thanks!
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com