Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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 5 years, 11 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

    application solution

    Popular Salesforce Blogs

    Duplicate Data

    Why Duplicate Data Is a Problem | Salesforce Guide

    Blog in Data

    In the event that you follow the Optimize Sales Features for Lightning Experience trail, you know the Salesforce administrator, Maria Jimenez, at Ursa Major. She…

    Business Accounts, Contact Record, Copy Management Tools, Copy Records, Copy Records in Salesforce
    Mansi Tyagi Feb 9, 2022
    2,843  Views
    Salesforce Service Cloud

    What is Salesforce Service Cloud

    Blog in Salesforce

    Salesforce is the most popular CRM-based service provider with numerous amazing products. It has the largest market share among CRMs and offers users great quality…

    Artificial Intelligence, Backlogs, Boosting Productivity, Business, Business Goals
    SP Jun 15, 2021
    1,980  Views

    Experience Builder: Unlocking the Potential of Salesforce Experience Cloud

    Blog in Salesforce Products

    No-code and low-code development approaches are gaining immense popularity. These approaches have revolutionized how businesses, regardless of their size or technical expertise, can create websites…

    AppExchange Solutions, Automated email notifications, Brand Identity, Branded websites, Branding sets
    Advanced Oct 26, 2023
    2,760  Views

    Popular Salesforce Videos

    The Salesforce Team is Talking About What Working for Salesforce is Like

    The Salesforce Team is Talking About What Working for Salesforce is Like

    Video in Salesforce Stories

    The Salesforce team is talking about what working for Salesforce is like. Watch this video learn about their experience.

    Salesforce Training, Salesforce Tutorial, Salesforce Jobs, salesforce, Salesforce Video
    Vivek Nov 26, 2021
    1,897  Views
    APIs and Integration for the Salesforce Platform

    APIs and Integration for the Salesforce Platform

    Video in Salesforce Integration

    Watch this session to learn how you can integrate with the Salesforce Platform. We'll demonstrate features, APIs, and techniques for integrating with Salesforce Core, Heroku,…

    Salesforce Training, Salesforce Tutorial, Salesforce Integration, salesforce platform, Salesforce Video
    Abhishek Apr 28, 2021
    2,427  Views
    How to Compare Change Sets from Another Org ? #Salesforce Change Sets Helper | Salesforce Tutorials

    How to Compare Change Sets from Another Org ? #Salesforce Change Sets Helper | Salesforce Tutorials

    Video in Salesforce Training, Salesforce Admin

    Change set with sort, view all, and additional information, such as last modified date. Allows comparison with other orgs. A chrome extension to improve the…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Org, Salesforce Admin
    Kapil May 22, 2020
    5,946  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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.