You need to sign in to do that
Don't have an account?

how to display 3rd level soql query in visualforce page.
hi, loan__c --> Transaction__c --> customer__c --> loan is the grand child, transaction is child, customer is parent.
public list<customer__c> cus=[select id,name,(select amount__c,name,Transaction_Type__c,(select id from loans__r) from transactions__r) from customer__c];Error: DYNAMICAPPROVALCLASS Compile Error: SOQL statements cannot query aggregate relationships more than 1 level away from the root entity object. at line 10 column 5
how to write this type of query .
Jeff Douglas has a useful blog on the different types of SOQL queries which may also help you:
http://blog.jeffdouglas.com/2010/02/22/soql-how-i-query-with-thee-let-me-count-the-ways/