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

    The Future is Prompt: Salesforce Prompt Builder in 2025 and Beyond

    Blog in Others

    The buzz around generative AI isn't fading; it's evolving, integrating deeper into our daily workflows. For Salesforce users, this evolution is epitomized by Prompt Builder,…

    Cloudy Aug 1, 2025
    236  Views

    A Brief Guide to Set up Your Custom Domain for Salesforce Community Cloud

    Blog in Salesforce, Salesforce Cloud Platform

    There are a handful of ways to set up a custom domain in. But before you get there, setting up your domain name is considered…

    C panel, Cloud Security, CNAME, Community Name, Community Server
    DemandBlue Aug 25, 2020
    4,787  Views
    triggers in salesforce

    Get Started With Triggers in Salesforce | The Complete Guide

    Blog in Others, Salesforce, Salesforce Apex

    Triggers are the automated actions that are performed whenever DML operations are performed on the object. Before Trigger: These triggers are fired before the new…

    Apex Trigger, Batch Apex Class, Batch Apex in Salesforce, Before Trigger, Database
    Kirandeep Jul 24, 2020
    4,331  Views

    Popular Salesforce Videos

    Create Custom Auto Number Field With Your Criteria Using Flows | Salesforce

    Create Custom Auto Number Field With Your Criteria Using Flows | Salesforce

    Video in Salesforce Training, Salesforce Automation

    Have you ever want to have an auto number field but it only populates when certain criteria were met on a record? Now you can…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Warren Oct 21, 2020
    12,777  Views
    Displaying Field Values with Visualforce | Salesforce Video Tutorial

    Displaying Field Values with Visualforce | Salesforce Video Tutorial

    Video in Visualforce

    In this video, Rakesh Soni shows us how to display Field Values with Visualforce. This is a great video for anyone who wants to learn…

    Salesforce Training, Salesforce Tutorial, Salesforce Visualforce, salesforce, Visualforce
    Tulika Wadhwani Oct 13, 2022
    1,202  Views
    Benefits of Having Veteran In an Organization | Career in Salesforce

    Benefits of Having Veteran In an Organization | Career in Salesforce

    Video in Salesforce Training

    Let's Understand how a veteran can start their career in Salesforce? In this Episode Davis and Shrey covered the following questions: 1. About his background and…

    Salesforce Training, Salesforce Jobs, Salesforce Certification, Trailhead, Salesforce Hulk
    S2 Nov 17, 2021
    1,623  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

    © 2025 - 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.