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

    Steps to Install the Force.com IDE Plug-In in Eclipse

    Steps to Install the Salesforce Force.com IDE Plug-In in Eclipse

    Blog in Salesforce integration

    Force.com IDE can be installed into your existing Eclipse distribution. Following are the prerequisite to install Force.com IDE on your workstation : Don’t forget to check…

    Eclipse IDE, Force.com Debugger, Force.com IDE, Force.com Lightning Support., Force.com Plugin
    Ratnakar Mar 13, 2018
    45,002  Views
    Salesforce Slack Integration

    Salesforce Slack Integration and Configuration: Our Tried and Trusted Approaches

    Blog in Salesforce integration

    Both Salesforce and Slack are powerful business technologies on their own. Salesforce is the global No. 1 CRM, integration, and analytics platform. Slack is the…

    Apex Variables, API, Automation Configuration, Business Technologies, Communication
    Angie May 31, 2022
    3,875  Views

    Salesforce Serverless PayPal Integration in 2024

    Blog in Others

    Integrating payments into your Salesforce solution typically involves setting up both a client-side environment configured with a payment SDK and a server-side component equipped with…

    Compliance, Credit and Debit Cards, Custom Validation, Customization, Development time
    Vimera | Andersen Apr 3, 2024
    724  Views

    Popular Salesforce Videos

    Salesforce: Advanced 'Change Owner' Control in Flow and Apex

    Salesforce: Advanced 'Change Owner' Control in Flow and Apex

    Video in Salesforce Workflow

    Alex Edelstein explains the Salesforce feature known as the 'Change Owner' Control in Flow and Apex. This video is geared toward those already familiar with…

    Salesforce Training, Salesforce Tutorial, Salesforce Apex, salesforce, Apex
    Mayra Oct 21, 2022
    2,204  Views
    Salesforce Pay Expectations $$$ US and UK

    Salesforce Pay Expectations $$$ US and UK

    Video in Salesforce Stories, Salesforce Training

    Do you agree or disagree with these numbers? How do you think Mason Frank could have surveyed differently? In this video, Brad discusses just how…

    Salesforce Jobs, Salesforce Developer, Salesforce Consultant, Salesforce Administrator, dreamforce
    Bradley May 21, 2020
    2,646  Views
    The Significance Of Salesforce Commerce Cloud and Its Features

    The Significance Of Salesforce Commerce Cloud and Its Features

    Video in Salesforce Cloud Platform

    Commerce Cloud - an all-in-one unified e-commerce platform pronounced to be amongst the leading commerce solutions of today's time. We are a Salesforce commerce cloud…

    salesforce, salesforce services, Salesforce Cloud, Salesforce Commerce Cloud, Salesforce Cloud Services
    Cyntexa Dec 14, 2021
    2,109  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.