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, 12 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

    manual sharing using apex

    Manual Sharing Using Apex in Salesforce - Best Practices

    Blog in Salesforce Apex

    Apex Managed Sharing Sharing rules, they enable us to make exceptions to organization wide defaults for certain users as per our requirement.We cannot make give…

    custom object, Forcedotcom, Managed Sharing, Manual Sharing, Manual Sharing Using Apex
    Shubham Mar 27, 2020
    17,966  Views

    Boosting Legal Firm Efficiency with Salesforce Management Solutions

    Blog in Salesforce Products

    The legal industry is constantly evolving, with firms facing challenges related to data management, client communications, case tracking, and regulatory compliance. Salesforce Management Solutions offer…

    Automating Legal Processes, Case Management Salesforce, Case Management Software, Client Interaction Management, Client Relationship Management
    Aleksandar Oct 1, 2024
    404  Views
    UI Testing Automation

    The 202 of UI Testing Automation Model from Salesforce

    Blog in Salesforce

    Testing apps is critical to ensure that they are of top-notch quality. And to test applications, one type of testing you can trust is end-to-end…

    Automated UI Testing Tool, Automation Model, Blog, Document Object Model, DOM
    Grazitti Sep 15, 2022
    3,467  Views

    Popular Salesforce Videos

    How To Create Permission Set Group | Salesforce Development Tutorial

    How To Create Permission Set Group | Salesforce Development Tutorial

    Video in Others, Salesforce Training

    How to create permission set groups. This video will cover the following points - 1. Introduction Get a brief introduction about Permission Set Groups. 2.…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Development Tutorial, Salesforce Video
    Algoworks Apr 21, 2021
    1,739  Views
    Girikon Salesforce Expertise - Salesforce Silver Consulting Partner

    Girikon Salesforce Expertise - Salesforce Silver Consulting Partner

    Video in Salesforce Consultant

    Girikon has experienced and certified Salesforce Consultants are available to meet your entire gamut of Salesforce Implementation, Development, Customization, Integration and Support needs. Get salesforce…

    Salesforce Consultant, Salesforce Consulting Partner, salesforce consultants, salesforce consulting services
    Emily Apr 5, 2018
    1,440  Views
    What is Salesforce CRM?

    What is Salesforce CRM?

    Video in Salesforce Stories

    What is Salesforce CRM? Join this useful group for Salesforce job & career info and learn all about Salesforce CRM.

    Salesforce Training, Salesforce Tutorial, salesforce, CRM, Salesforce CRM
    Intelogik Nov 9, 2022
    1,690  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.