I need an SOQL query to find all the fields in an Object which are referencing to other Objects. For Example
Account is an sObject which has different fields which refer to the other sObjects. The SOQL query should be such that all the related sObjects should be listed when we look for any sObject.
[Account] -> [Contact, AccountContactRole, Case, Asset, Contract, Order, Opportunity]