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, 9 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 Customer 360: A Comprehensive Overview & Advantages

    Blog in Salesforce

    Salesforce recently introduced Customer 360, a groundbreaking technology that provides companies with a unified, comprehensive view of their customers across all touchpoints in the rapidly…

    API in Salesforce, Salesforce Development Services, salesforce-customer-360-view, salesforcedeveloper
    Dean Oct 14, 2025
    578  Views
    Field Dependencies

    Field Dependencies in Salesforce - All You Need to Know

    Blog in Salesforce Apex

    Field Dependency In Salesforce, field dependencies are the filters that let users alter a picklist's items based on the value of a different field.  Field…

    Conjunction, Controlling and Dependent Fields, Controlling Field, Create Field Dependency, Custom Picklist Fields
    Sejal Agrawal Oct 14, 2022
    5,244  Views
    leads in salesforce

    Imported for Leads in Salesforce - All You Need To Know

    Blog in Salesforce

    Lead Object in Salesforce To lay it out plainly, in Salesforce, "Leads" are utilized to indicate individuals you wish as clients. Salesforce suggests isolating these…

    Auto Response Rule, B2B Organizations, Best Practices, Business Endeavors, Clients
    MOHIT Aug 14, 2020
    3,344  Views

    Popular Salesforce Videos

    Get Started with Salesforce Application Security

    Get Started with Salesforce Application Security

    Video in Salesforce Security

    Let the right users in at the right time, and give them access to the right data. With the growth of a mobile and remote…

    Salesforce Training, Salesforce Tutorial, Salesforce Security, Salesforce Org, Salesforce Video
    Rupal Kakkar Mar 11, 2021
    2,315  Views
    The Future of Salesforce Security and Authentication

    The Future of Salesforce Security and Authentication

    Video in Salesforce Security

    Learn how to enable the best security in a way that will have your users thanking you. Be the first to learn about the next-gen…

    Salesforce Security, Cloud Computing, User Setup, Security And Access, User Experience
    Ashley May 8, 2018
    2,306  Views
    Tableau CRM for Emergency Response Management | Salesforce

    Tableau CRM for Emergency Response Management | Salesforce

    Video in Others, Salesforce Stories

    When disaster strikes, public and private health organizations, as well as government agencies, need to respond quickly and efficiently. Tableau CRM for Emergency Response Management…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Abhishek Feb 3, 2021
    1,700  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.