Kamis, 20 November 2014

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: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

.

__,_._,___

Tidak ada komentar:

Posting Komentar