Please try the algorithm provided in the following link: there is sample SOQL which you can run and test to if if you get the assignment correct: Territory is not a separate object as such in salesforce but its a group ID which represents a Territory:
Please try the algorithm provided in the following link: there is sample SOQL which you can run and test to if if you get the assignment correct:
Territory is not a separate object as such in salesforce but its a group ID which represents a Territory:
https://developer.salesforce.com/forums?id=906F00000008w0uIAA
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008yGQIAY