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

    Lightning Components & AuraEnabled method parameters: What’s working and what’s not?

    Lightning Components & AuraEnabled Method : What’s Working & What’s Not?

    Blog in Lightning

    Parameters Passing from Client-Side to Server-Side is the much-needed part for Lightning component development. Prerequisite to pass a parameter from client-side to server-side: Value of…

    AURA, Aura in Salesforce, AuraEnabled, AuraEnabled Method, Lightning Component
    Aman May 8, 2018
    11,741  Views
    Salesforce Security Mastery: Object, Permission Sets, Field, and Record-Level Strategies with OWD

    Salesforce Security Mastery: Object, Permission Sets, Field, and Record-Level Strategies with OWD

    Blog in Salesforce Admin

    What You’ll Learn: How to protect an Object in Salesforce Security? What is Profile Level Security? What is Permission Set in Salesforce? Difference between Profile…

    App Settings, Blueprint, Compliance, Contract Manager, Data Integrity
    SF Dec 6, 2023
    1,646  Views

    Salesforce & Xero Integration in 2024 | All You Need to Know

    Blog in Others

    This article is prepared by our Salesforce Developer Lisa Vasilieva. Xero is a cloud-based accounting software for small and medium-sized businesses. This system gives the ability…

    Auth Code with PKCE, Auth Providers, Authorize Endpoint URL, Authorized Provider, Callouts
    Vimera | Andersen Dec 13, 2023
    1,072  Views

    Popular Salesforce Videos

    Skills for Salesforce Field Service | Optimize Customer Service for Businesses | Salesforce Webinar

    Skills for Salesforce Field Service | Optimize Customer Service for Businesses | Salesforce Webinar

    Video in Salesforce Field Service Platform

    One way to optimize customer service operations is by having the right technician for the right job. How? Skills for Salesforce Field Service is the…

    Salesforce Tutorial, salesforce, Salesforce Webinar, Salesforce Field Service Platform, Salesforce Field Service
    AblyPro Jul 4, 2024
    872  Views
    Work.com Workplace Command Center Demo

    Work.com Workplace Command Center Demo

    Video in Salesforce Products

    Work.com provides you with essential solutions designed to help businesses reopen the workplace as quickly as possible while helping to keep employees, customers, partners, and…

    salesforce, Salesforce Video, Customers, Businesses Reopen, Work.com
    Abhishek Aug 24, 2020
    2,111  Views
    Email-to-Case Advance | Clean Case Comments

    Email-to-Case Advance | Clean Case Comments

    Video in Salesforce Products

    Save your support reps from ‘Click fatigue’ while hastening the resolution of customer cases. Get Email to Case Advance, the much-needed power booster for your…

    salesforce, email to case, support, cleancomments, grazitti
    Shubham Jul 23, 2019
    2,130  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.