Count_Distinct() is used to find the number of distinct non-null field values as mentioned in the query criteria.
SELECT COUNT_DISTINCT(City__c) TotalCities FROM Employee__c1
Below is the output of the above query execution.
Post a Comment
Post Comments (Atom)
Sharing is Caring!!! Share this with your friends!!!