I have a field called Rating on Account which is having 3 picklist values: Hot, Warm, and Cold. I want to write a SOQL query to fetch the counts of each value. Like I want to know how many records have a Rating Hot value in the Rating field and so on for each value.

TechnicalSenior Salesforce DeveloperSalesforce Developer