Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What is the correct SOQL statement for counting a grouped by SOQL?

Asked by Diana Campbell Aug 22, 2023 1.2K views 1 answer
Share

About this question

 I have built a SOQL and added the count field to the object. I have used an object which can hold the phrases provided in the search box, and every record refers to one search. Since I want to count my searches and represent them in descending order, my intention is to make it appear among the top 5 searches, or it should appear on a VF page. Which SOQL statement should I use to do that? 

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.