SAQL vs SOQL vs SOSL vs SQL?












1














I have recently come across SAQL and I'd like to understand the differences between all the different ways to query against Salesforce APIs. The new einstein branding is too complex to get my head around. So any help is appreciated.










share|improve this question



























    1














    I have recently come across SAQL and I'd like to understand the differences between all the different ways to query against Salesforce APIs. The new einstein branding is too complex to get my head around. So any help is appreciated.










    share|improve this question

























      1












      1








      1







      I have recently come across SAQL and I'd like to understand the differences between all the different ways to query against Salesforce APIs. The new einstein branding is too complex to get my head around. So any help is appreciated.










      share|improve this question













      I have recently come across SAQL and I'd like to understand the differences between all the different ways to query against Salesforce APIs. The new einstein branding is too complex to get my head around. So any help is appreciated.







      soql sql einstein-analytics analytics saql






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 2 at 17:30









      user6641561

      1144




      1144






















          1 Answer
          1






          active

          oldest

          votes


















          6














          SQL is a more traditional and widespread query language. It is ubiquitous and not at all limited to just Salesforce. The one place it is used within the Salesforce system is Marketing Cloud.





          SOQL is the basic query language used in Apex, the REST API, etc. (reference):




          Use the Salesforce Object Query Language (SOQL) to search your organization’s Salesforce data for specific information. SOQL is similar to the SELECT statement in the widely used Structured Query Language (SQL) but is designed specifically for Salesforce data.






          SOSL is similar to SOQL, but its use is generally across multiple objects at once, or when you don't necessarily know in which field the matching data might reside (reference):




          Use the Salesforce Object Search Language (SOSL) to construct text-based search queries against the search index.



          You can search text, email, and phone fields for multiple objects, including custom objects, that you have access to in a single query in the following environments.



          When to Use SOSL



          Use SOSL when you don’t know which object or field the data resides in, and you want to:




          • Retrieve data for a specific term that you know exists within a field. Because SOSL can tokenize multiple terms within a field and build a search index from this, SOSL searches are faster and can return more relevant results.

          • Retrieve multiple objects and fields efficiently where the objects might or might not be related to one another.

          • Retrieve data for a particular division in an organization using the divisions feature.

          • Retrieve data that’s in Chinese, Japanese, Korean, or Thai. Morphological tokenization for CJKT terms helps ensure accurate results.






          SAQL was introduced with Wave and is used for analytics (reference):




          Use SAQL (Salesforce Analytics Query Language) to access data in Analytics datasets. Analytics uses SAQL behind the scenes in lenses, dashboards, and explorer to gather data for visualizations.







          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "459"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f245228%2fsaql-vs-soql-vs-sosl-vs-sql%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            6














            SQL is a more traditional and widespread query language. It is ubiquitous and not at all limited to just Salesforce. The one place it is used within the Salesforce system is Marketing Cloud.





            SOQL is the basic query language used in Apex, the REST API, etc. (reference):




            Use the Salesforce Object Query Language (SOQL) to search your organization’s Salesforce data for specific information. SOQL is similar to the SELECT statement in the widely used Structured Query Language (SQL) but is designed specifically for Salesforce data.






            SOSL is similar to SOQL, but its use is generally across multiple objects at once, or when you don't necessarily know in which field the matching data might reside (reference):




            Use the Salesforce Object Search Language (SOSL) to construct text-based search queries against the search index.



            You can search text, email, and phone fields for multiple objects, including custom objects, that you have access to in a single query in the following environments.



            When to Use SOSL



            Use SOSL when you don’t know which object or field the data resides in, and you want to:




            • Retrieve data for a specific term that you know exists within a field. Because SOSL can tokenize multiple terms within a field and build a search index from this, SOSL searches are faster and can return more relevant results.

            • Retrieve multiple objects and fields efficiently where the objects might or might not be related to one another.

            • Retrieve data for a particular division in an organization using the divisions feature.

            • Retrieve data that’s in Chinese, Japanese, Korean, or Thai. Morphological tokenization for CJKT terms helps ensure accurate results.






            SAQL was introduced with Wave and is used for analytics (reference):




            Use SAQL (Salesforce Analytics Query Language) to access data in Analytics datasets. Analytics uses SAQL behind the scenes in lenses, dashboards, and explorer to gather data for visualizations.







            share|improve this answer


























              6














              SQL is a more traditional and widespread query language. It is ubiquitous and not at all limited to just Salesforce. The one place it is used within the Salesforce system is Marketing Cloud.





              SOQL is the basic query language used in Apex, the REST API, etc. (reference):




              Use the Salesforce Object Query Language (SOQL) to search your organization’s Salesforce data for specific information. SOQL is similar to the SELECT statement in the widely used Structured Query Language (SQL) but is designed specifically for Salesforce data.






              SOSL is similar to SOQL, but its use is generally across multiple objects at once, or when you don't necessarily know in which field the matching data might reside (reference):




              Use the Salesforce Object Search Language (SOSL) to construct text-based search queries against the search index.



              You can search text, email, and phone fields for multiple objects, including custom objects, that you have access to in a single query in the following environments.



              When to Use SOSL



              Use SOSL when you don’t know which object or field the data resides in, and you want to:




              • Retrieve data for a specific term that you know exists within a field. Because SOSL can tokenize multiple terms within a field and build a search index from this, SOSL searches are faster and can return more relevant results.

              • Retrieve multiple objects and fields efficiently where the objects might or might not be related to one another.

              • Retrieve data for a particular division in an organization using the divisions feature.

              • Retrieve data that’s in Chinese, Japanese, Korean, or Thai. Morphological tokenization for CJKT terms helps ensure accurate results.






              SAQL was introduced with Wave and is used for analytics (reference):




              Use SAQL (Salesforce Analytics Query Language) to access data in Analytics datasets. Analytics uses SAQL behind the scenes in lenses, dashboards, and explorer to gather data for visualizations.







              share|improve this answer
























                6












                6








                6






                SQL is a more traditional and widespread query language. It is ubiquitous and not at all limited to just Salesforce. The one place it is used within the Salesforce system is Marketing Cloud.





                SOQL is the basic query language used in Apex, the REST API, etc. (reference):




                Use the Salesforce Object Query Language (SOQL) to search your organization’s Salesforce data for specific information. SOQL is similar to the SELECT statement in the widely used Structured Query Language (SQL) but is designed specifically for Salesforce data.






                SOSL is similar to SOQL, but its use is generally across multiple objects at once, or when you don't necessarily know in which field the matching data might reside (reference):




                Use the Salesforce Object Search Language (SOSL) to construct text-based search queries against the search index.



                You can search text, email, and phone fields for multiple objects, including custom objects, that you have access to in a single query in the following environments.



                When to Use SOSL



                Use SOSL when you don’t know which object or field the data resides in, and you want to:




                • Retrieve data for a specific term that you know exists within a field. Because SOSL can tokenize multiple terms within a field and build a search index from this, SOSL searches are faster and can return more relevant results.

                • Retrieve multiple objects and fields efficiently where the objects might or might not be related to one another.

                • Retrieve data for a particular division in an organization using the divisions feature.

                • Retrieve data that’s in Chinese, Japanese, Korean, or Thai. Morphological tokenization for CJKT terms helps ensure accurate results.






                SAQL was introduced with Wave and is used for analytics (reference):




                Use SAQL (Salesforce Analytics Query Language) to access data in Analytics datasets. Analytics uses SAQL behind the scenes in lenses, dashboards, and explorer to gather data for visualizations.







                share|improve this answer












                SQL is a more traditional and widespread query language. It is ubiquitous and not at all limited to just Salesforce. The one place it is used within the Salesforce system is Marketing Cloud.





                SOQL is the basic query language used in Apex, the REST API, etc. (reference):




                Use the Salesforce Object Query Language (SOQL) to search your organization’s Salesforce data for specific information. SOQL is similar to the SELECT statement in the widely used Structured Query Language (SQL) but is designed specifically for Salesforce data.






                SOSL is similar to SOQL, but its use is generally across multiple objects at once, or when you don't necessarily know in which field the matching data might reside (reference):




                Use the Salesforce Object Search Language (SOSL) to construct text-based search queries against the search index.



                You can search text, email, and phone fields for multiple objects, including custom objects, that you have access to in a single query in the following environments.



                When to Use SOSL



                Use SOSL when you don’t know which object or field the data resides in, and you want to:




                • Retrieve data for a specific term that you know exists within a field. Because SOSL can tokenize multiple terms within a field and build a search index from this, SOSL searches are faster and can return more relevant results.

                • Retrieve multiple objects and fields efficiently where the objects might or might not be related to one another.

                • Retrieve data for a particular division in an organization using the divisions feature.

                • Retrieve data that’s in Chinese, Japanese, Korean, or Thai. Morphological tokenization for CJKT terms helps ensure accurate results.






                SAQL was introduced with Wave and is used for analytics (reference):




                Use SAQL (Salesforce Analytics Query Language) to access data in Analytics datasets. Analytics uses SAQL behind the scenes in lenses, dashboards, and explorer to gather data for visualizations.








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 2 at 17:38









                Adrian Larson

                105k19112235




                105k19112235






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Salesforce Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f245228%2fsaql-vs-soql-vs-sosl-vs-sql%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                    Alcedinidae

                    RAC Tourist Trophy