Monday 20 November 2017

Count Account having Contacts : using group by

Select count(name) from Contact group by AccountId

Output:


No comments:

Post a Comment

Batch Apex

1. What are transaction limits in apex? Total number of SOQL queries issued1 - 100 Total number of records retrieved by SOQL queries - 50...