Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Help with Datepart

Author  Topic 

Adreanne
Starting Member

9 Posts

Posted - 2007-05-03 : 09:16:09
I would like to take the following code and display the data / count by month. I want to see how many people are logging in by month.. I tried using the datepart but I keep getting an aggrefate comannd error can anyone help modify this query

SELECT DISTINCT Count(login.login_time) AS CountOflogin_time
FROM login
WHERE login.login_time>=#10/1/2005#;

Thanks,

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-05-03 : 09:18:02
Duplicate post
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=83038


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -