I am trying to get unique values by Territory_ID__c with a (Salesforce SQL) SOQL query.
I tried this:
return [select id,name,ANNUAL_CALLS__c,city__c,state__c,No_Of_Targets__c,
Territory_ID__c,Territory__r.name,Territory__r.ANNUAL_CALLS__c
from zip__c where name in :sArr unique by Territory_ID__c];
But this does not return the unique values. How can I get unique values of a column?