5 answers

Hi SunilWhen you perform a child to parent query you have to use Child Relationship Name for child object followed by __r. By default it will be your plural name. You can find this on your child object on field(Master-Detail)..How to perform soql query refer this link https://developer.salesforce.com/forums/?id=9060G000000XbH5QAKHowever Make the code changes <apex:page standardcontroller="Ticket__c" extensions = "sample1">
<apex:pageBlock>
<apex:repeat value="{!tc}" var="a">
<apex:pageBlockTable value="{!a.Ticket_Items__r}" var="c">
<apex:column value="{!c.Name}"/>
//Here you can write your rese 11 columns
</apex:pageBlockTable>
</apex:repeat>
</apex:pageBlock>
</apex:page>
public class sample1
{
public List<Ticket__c> tc {get;set;}
public sample1(ApexPages.StandardController controller)
{
Id id = ApexPages.currentPage().getParameters().get('Id');
tc = [SELECT Name, (SELECT Name FROM Ticket_Items__r ) FROM Ticket__c where ID =: id];
//Please see your child relationship name once in my case it isTicket_Items
}
}