Kamis, 20 November 2014

Re: [MS_AccessPros] Breaking down by month

 

Is there a reason I am getting multiple values per month?

Query1
ApplicationID Expr1 CountByMonth
1313 2013 Dec 1
1314 2013 Dec 1
1315 2013 Nov 1
1321 2013 Dec 1
1322 2013 Dec 1
1347 2013 Nov 1
1348 2013 Nov 1
1349 2013 Nov 1
1350 2013 Nov 1
1351 2014 Jan 1
1352 2014 Jan 1
1353 2014 Jan 1
 
For instance Nov should read

13472013 Nov4

With Warm Regards,
 
Arthur D. Lorenzini
IT System Manager
Cheyenne River Housing Authority
Wk.(605)964-4265  Ext. 130
Fax (605)964-1070
"Only those who will risk going too far can possibly find out how far one can go."






From: "John Viescas JohnV@msn.com [MS_Access_Professionals]" <MS_Access_Professionals@yahoogroups.com>
To: MS_Access_Professionals@yahoogroups.com
Sent: Thursday, November 20, 2014 10:33 AM
Subject: Re: [MS_AccessPros] Breaking down by month

 
Art-

SELECT tblApplication.ApplicationID, Format(tblApplication.AppReceivedDate, "yyyy mmm"), Count(tblApplication.ApplicationID) As CountByMonth
FROM tblApplication
WHERE tblApplication.AppReceivedDate >= (Date() - 365)
GROUP BY ApplicationID, Format(AppReceivedDate, "yyyy mmm")

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)




On Nov 20, 2014, at 5:13 PM, dbalorenzini@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:


I have the following query which is pretty basic:

SELECT tblApplication.ApplicationID, tblApplication.AppReceivedDate
FROM tblApplication
WHERE (((tblApplication.AppActiveFlag)=True));

What I need to do is get a count of applications broken down by months for the last 12 months.

Any ideas?

Thank you,
Arthur Lorenzini
Sioux Falls, SD



__._,_.___

Posted by: Art Lorenzini <dbalorenzini@yahoo.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

.

__,_._,___

Tidak ada komentar:

Posting Komentar