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 6 years, 1 month 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

    DevOps For Salesforce - All You Need To Know

    Blog in Salesforce

    While most modern software development is Agile, small and medium scale businesses do not have the opportunity nor the resources to move in that direction. Most…

    Automation of Deployments, Business, Configuration Changes, Customer Feedback, Customized System
    SP Oct 19, 2020
    4,693  Views
    Insert Record using JavaScript Remoting with Visualforce Page

    Insert Record using JavaScript Remoting with Visualforce Page

    Blog in Others, Visualforce

    Hey there! We must have heard about javascript remoting. So today we are going to learn about how to use the Javascript remoting to build…

    Custom Table, DML Operation, Insert Record, Javascript in Salesforce, JavaScript Remoting
    Parul Sep 28, 2018
    5,545  Views

    Salesforce Developer Day To Day Activities

    Blog in Salesforce Career

    Salesforce is the most in-demand and one of the fastest growing skills which you should possess if you want to have a career in the…

    Developer Community, Job Of Salesforce Developer, records, Salesforce Career, Salesforce Developer
    Vikas May 9, 2019
    13,449  Views

    Popular Salesforce Videos

    Discount Categories in Salesforce CPQ

    Discount Categories in Salesforce CPQ

    Video in Salesforce Training

    Use the discount category object to store values that you want to apply via rules to one or more products. After you associate the discount…

    Salesforce Training, Salesforce CPQ, Salesforce Video, Salesforce Learning, Product Rule
    Rupal Kakkar Jun 14, 2021
    2,712  Views
    What is the Growth and Future of Salesforce Administrators In India

    What is the Growth and Future of Salesforce Administrators In India

    Video in Salesforce Admin

    What is the Growth and Future of Salesforce Administrators In India? Listen to #shreysharma guiding and answering all of your queries.

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    S2 Aug 16, 2022
    2,260  Views
    What Are Roll-Up Summary Fields in Salesforce? | Video Tutorial

    What Are Roll-Up Summary Fields in Salesforce? | Video Tutorial

    Video in Salesforce Training

    A roll-up summary field calculates values from related records, such as those in a related list. You can create a roll-up summary field to display…

    Salesforce Training, Salesforce Tutorial, salesforce, Master Detail Relationship, Salesforce Video
    Prafull Jun 3, 2022
    1,542  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.