Friday, November 21, 2008     | Register
To start or answer a thread you will need to login...


Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement.

 

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service.

 

We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

 
 
  Forums  DotNetNuke  Simple SQL  New Users per month and monthly average
Previous Previous
 
Next Next
New Post 4/23/2007 5:18 AM
  Rodney Joyce
2904 posts
www.DNNDir.com
1st Level Poster




New Users per month and monthly average  (N/A)

I use this report on PokerDIY to check how many new users I have had each month and the average per day over each month.

 

SELECT DATENAME(m , CreatedDate) as Month, YEAR(CreatedDate) as 'Year', COUNT(*) as 'New Users', COUNT(*)/(SELECT day(dateadd(mm,datediff(mm,-1,CAST(MONTH(CreatedDate) AS NVARCHAR) + '/' + '01' + '/' + CAST(YEAR(CreatedDate) AS NVARCHAR)),-1))) as 'Ave Users /day'FROM Users U
INNER JOIN UserPortals UP ON UP.UserID = U.UserID
WHERE PortalID = 6
AND Authorised = 1
GROUP BY DATENAME(m , CreatedDate), MONTH(CreatedDate), YEAR(CreatedDate)


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  Simple SQL  New Users per month and monthly average
Top Threads
In the past 1 week, we have 29 new thread(s) and 70 new post(s)
The most popular thread has been Re: Multipaid Sponsored Enhancements
The most active thread has been Multipaid Sponsored Enhancements / Crowdsourcing to improve modules
Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker   |  Privacy Statement  |  Terms Of Use