Trying to query the main parent in the hierarchy.
I have a case whose related account is a child of another account in hierarchy. Can someone please suggest how to query for the main parent in the hierarchy ?
Current Query:
SELECT Id, accountId from case
Need to modify the above statement to something like
SELECT Id, accountId.parent from case