When I was checking the Account Name
field in Contact Object it is appearing as a Lookup(Account)
account is parent and contact is child i know those relation ships and behavior
parent to child query
ex: account ac =[select id,name ,(select id,anme from contacts) from account];
same like
contact is parent and Opportunity
child but query from different
List<contact> consobj=[SELECT id,firstname,(SELECT OpportunityId FROM OpportunityContactRoles) ,lastname FROM contact ];
what is difference between Account
/Contact
and Contact
/Opportunity