Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How to access child records from parent and parent records from child in SOQL in Salesforce?

    Tagged: Account, Child Record, Normal SOQL, Parent Child Relationship, Parent Record, Salesforce SOQL

    • Salesforce® Discussions

      How to access child records from parent and parent records from child in SOQL in Salesforce?

      Posted by Udit on January 28, 2020 at 3:47 PM

      How to access child records from parent and parent records from child in SOQL in Salesforce?

      Aditya replied 6 years, 8 months ago 2 Members · 1 Reply
      • Account
      • Child Record
      • Normal SOQL
      • Parent Child Relationship
      • Parent Record
      • Salesforce SOQL
    • 1 Reply
    • Aditya

      Member
      January 28, 2020 at 3:56 PM

      Hi Udit,

      To access child record by using normal SOQL:

      List<Account> accList  = [select ID, FirstName, (select ID, Name from  Contact) from Account];

      To access parent record from child:

      List<college__c> univList=[select Name,university__r.Name from college__c
      system.debug(univList);

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    Salesforce Marketing Cloud and Pardot IP Warming Best Practices 2021- Improve Email Deliverability

    Blog in Salesforce Cloud Platform, Salesforce Products

    IP warming isn’t a term you hear around the water cooler or marketing webinars. But it is important and any marketer who relies on email…

    Authentication Records, B2B, B2C, B2C Companies, Best Email Content
    LevelShift (formerly DemandBlue) Jun 24, 2021
    3,479  Views

    Deployment  In Salesforce 

    Blog in Others

    Deployment is a process for making changes or moving API components from one organization to another organization, after completion of logic which we are developing…

    Deployment In Salesforce, Force.com Eclipse Editor, Salesforce Components, Salesforce Features, Salesforce Organization
    Gaurav Apr 25, 2016
    8,386  Views
    News | Salesforce is Aiming to Reach About $60 Billion Revenue Goal by the Year 2034

    Salesforce is Aiming to Reach About $60 Billion Revenue Goal by the Year 2034

    Blog in Salesforce customization

    With the immense popularity of the Salesforce platform, the career options for Salesforce is growing fast. Salesforce developers practice optimized methods to implement, to support and…

    Features of Salesforce, Salesforce, Salesforce Developers, Salesforce News, Salesforce on News
    TatvaSoft Feb 26, 2018
    5,716  Views

    Popular Salesforce Videos

    Getting Business Insights From Telephony Data in Salesforce

    Getting Business Insights From Telephony Data in Salesforce

    Video in Sales

    Big Data, Data Analytics and Data mining are big terms that often sound like they are only for the ‘giant corporation‘ and put people off…

    salesforce, Data Integration, Saleforce Big Data, CTI, phone
    Ian Mar 19, 2020
    1,633  Views
    Salesforce Service Cloud: Upload Files During a Live Chat

    Salesforce Service Cloud: Upload Files During a Live Chat

    Video in Salesforce Cloud Platform

    Chatbots are incredible automation tools that can streamline a variety of business processes. Still, regardless of how much they can accomplish, there are situations where…

    Salesforce Training, Salesforce Tutorial, Salesforce Service Cloud, Salesforce Video, Salesforce Learning
    Rupal Kakkar Dec 29, 2021
    2,838  Views
    Salesforce Live Executive Experience: UK and Ireland 2021

    Salesforce Live Executive Experience: UK and Ireland 2021

    Video in Salesforce Stories

    At Salesforce Live Executive Experience we welcomed guests in-person and virtually to enjoy enlightening content, much missed networking and a performance from Jools Holland. The…

    Salesforce Training, Salesforce Tutorial, Salesforce Video, Salesforce Learning, Salesforce LIVE
    Pooja Jul 28, 2021
    1,810  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.