function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
raj123raj123 

SOQL Query Month Wise

I have a requirement to find no of records created monthy,

 

the input here is the date range,  start date and the end date .(start o the  month)

 

My question is how to query between these dates to get the monthly avarage of a particular field and the count no of  records created  monthly.

 

any help, code samples  would be appriciated. 

Starz26Starz26

In Aggregate Query

 

Select Count(ID), CALENDAR_MONTH(StartDate)start From XXXXX Group By start