Activity Forums Salesforce® Discussions What is the inner query in SOQL in Salesforce ?

  • Manish

    Member
    January 24, 2020 at 1:13 pm

    Hi Arun

    If you are trying to fetch data from one object to another object then and they should have parent child relationship between them, then you go for inner query.

     

  • Aditya

    Member
    January 24, 2020 at 1:54 pm

    Hi Arun

    SOQL Queries are used to retrieve the data from the database. it should have parent child relationship between its, then you go for inner query.

  • Ratnesh

    Member
    January 24, 2020 at 2:50 pm

    You need the relationship name to perform inner SOQL query. For example, if you are going to perform a query to get Accounts along with their contacts then your query will be something like –

    Select Id, Name,(Select Id, LastName from Contacts) from Account.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos