in Technology by
What is the difference between SOQL and SOSL in Salesforce?

1 Answer

0 votes
by

The differences are mentioned in the table below:

SOQL vs SOSL

SOQL (Salesforce Object Query Language) SOSL (Salesforce Object Search Language)

Only one object can be searched at a time Many objects can be searched at a time

Can query any type of field Can query only on email, text or phone

Can be used in classes and triggers Can be used in classes, but not triggers

DML Operation can be performed on query results DML Operation cannot be performed on search results

Returns records Returns fields

Related questions

0 votes
    Explain the types of SOQL statements in Salesforce....
asked Jun 26, 2021 in Technology by JackTerrance
0 votes
    Explain the difference between role and profile in Salesforce?...
asked Nov 12, 2020 in Technology by JackTerrance
0 votes
    What is the difference between public and global class in Apex Salesforce?...
asked Nov 11, 2020 in Technology by JackTerrance
0 votes
    What is the difference between a Role and Profile in Salesforce?...
asked Nov 11, 2020 in Technology by JackTerrance
0 votes
    Can anyone tell me what is the difference between custom app and console app in salesforce? Select the correct answer from above options...
asked Jan 9, 2022 in Education by JackTerrance
0 votes
    How many records can a select query return? How many records can a SOSL query return?...
asked Nov 11, 2020 in Technology by JackTerrance
0 votes
    can anybody help me with writing a SOQL query. Using "Date" data type in WHERE statement is easy, ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    How do I make a SOQL query like this? SELECT id FROM Account WHERE LastActivityDate = 30_DAYS_AGO This produces an ... = 30_DAYS_AGO ^ Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    When using the SOAP API to work with salesforce.com (SFDC) it seems that the primary key in the underlying database ... is all about? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    We're looking into setting up a proper deployment process. From what I've read there seems to be 4 ... PickList items? SControls Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    What are example of a Salesforce API and its usage?...
asked Jun 26, 2021 in Technology by JackTerrance
0 votes
    What are getter methods and setter methods in Salesforce?...
asked Nov 11, 2020 in Technology by JackTerrance
0 votes
    What is WhoId and WhatId in activities in Salesforce?...
asked Nov 11, 2020 in Technology by JackTerrance
0 votes
    How can you create many to many relationships under salesforce? (1)Creating direct many to many relationships (2) ... (4)Not possible to create many relationships in salesforce...
asked Aug 26, 2021 in Technology by JackTerrance
0 votes
    What restrictions do double values in Salesforce have? 1. Age and scale 2. Scale and position 3. Size and time 4. Scale and precision...
asked Jun 28, 2021 in Technology by JackTerrance
...