
Discover how SOQL, the Salesforce object query language, enables querying Salesforce data with a select clause, using circle as the shorthand for circle sql.
Understand how soql talks to the database, retrieves data from single or related objects, and performs aggregation, counting, grouping, and sorting across all data types.
Learn the basic soql query structure in salesforce by selecting fields with the select clause, specifying the object with from, and adding optional where filters.
learn to build basic, out-of-the-box Salesforce queries in the developer console by selecting fields from the opportunity object, including standard and custom fields, and executing results.
Master SOQL in Salesforce by querying standard and custom fields, breaking down compound fields like billing address, and applying where clauses with today and string literals for practical use cases.
Master key soql operators such as or, and, in, like, order by, limit, offset, count, group by, and having with practical examples on accounts, cases, opportunities, and leads.
Master how to use not null and equal to null checks in SOQL queries to filter out blank data and drive accurate results.
Learn how to use boolean flags in SOQL to filter records by checkbox fields, using a where clause to find opportunities with create task true or false.
Learn date and date time queries in SOQL, filtering by current month, last month, or a range, and handle created date as a date time field with a time component.
Learn how to escape special characters in SOQL using the backslash, enabling apostrophes, quotes, and backslashes to be treated as string parts in queries.
Learn why select star isn’t allowed in Salesforce with multitenant architecture. Use the fields function to query all fields, standard fields, or custom fields with ID under a 200-record limit.
Learn how to escape reserved characters in SOQL using the backslash, to correctly handle apostrophes and backslashes and avoid parsing errors.
Examine governor limits in SOQL: 100 synchronous queries per transaction, 50,000 records per query, and related constraints, with examples on parent-child queries and escaping reserved characters.
Explore SOQL basics through a quiz: use the or operator for multiple values, last_week to fetch last week, like with %, and dot notation for parent fields; 50,000-record limit.
In this course, you will learn all about SOQL - Salesforce Object Query Language
SOQL is the language Salesforce uses to communicate to the database and it is an important stepping stone in starting your Developer Journey. It has a syntax that's very similar to SQL, so if you already know SQL, you'll pick up SOQL quickly. We will start by understanding the Query Structure of SOQL, which will make it easy for you to write queries.
We will cover:
- Basics of SOQL
- What is SOQL
- Why do we need SOQL
- How is SOQL an extension of SQL
- Build basic queries Out of the Box using Developer Console
- Different Operators & Clauses in SOQL : AND, OR, NOT, LIKE, ORDER BY, GROUP BY, HAVING, LIMIT, OFFSET, WHERE
We will also look at use cases on how to:
- Use Null in SOQL
- Use Escape Characters in SOQL
- Use Date Specific Filters in SOQL
- Query Parent information from Child SOQL
- Query Child information from Parent SOQL
We will understand the best practices of writing effective SOQL
We will discuss 9 practice use cases to understand the query structure and writing them effectively.
We will also understand the Governor Limits by Salesforce on SOQL
Lastly we will play a quiz game to see what you learnt.
Hope this course turns out to be a good learning opportunity for you and sets you up to speed for your Developer journey.