troubleshooting Question

Get count of records by month using SQL

Avatar of Jenkins
JenkinsFlag for United States of America asked on
Oracle DatabaseDatabasesMicrosoft SQL Server
10 Comments5 Solutions631 ViewsLast Modified:
I have a date range of records.  (1/1/2010 through 12/31/2010)

Coding the following will give me a total record count:


How could I modify it to give me a count by month? I need to know the number of records per month (ie 1/1/2010 through 1/31/2010, 2/1/2010 through 2/28/2010, etc etc)

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 5 Answers and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 5 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros