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 day SQL query
Previous Previous
 
Next Next
New Post 4/23/2007 5:16 AM
Informative
  Rodney Joyce
2906 posts
www.DNNDir.com
1st Level Poster




New Users per day SQL query  (N/A)
Modified By Rodney Joyce  on 4/23/2007 6:17:32 AM)

This query shows the number of users for each day. I use it on PokerDIY to see how many new users joined - I leave the sorting to the SQLView module so I can click on the col headings...

 

SELECT DAY(CreatedDate) as 'Day', DATENAME(m , CreatedDate) as Month, YEAR(CreatedDate) as 'Year', COUNT(*) As 'New Users'
FROM Users U
INNER JOIN UserPortals UP ON UP.UserID = U.UserID
WHERE PortalID = 6
AND Authorised = 1
GROUP BY DAY(CreatedDate), 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 day SQL query
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