Book Image

Getting Started with SOQL

By : Magulan D
Book Image

Getting Started with SOQL

By: Magulan D

Overview of this book

<p>This practical guide will tell you everything you need to know about SOQL statements. You will learn the optimum way to write complex SOQL statements with this easy-to-understand guide. Beginning with basic SOQL statements, you will progress quickly onto more advanced statements, such as how to filter multiselect picklist values to escape sequences.</p> <p>This book will teach you how to sort records with more than one field, sorting with more than one field–one in ascending order and another field in descending order—and sorting null records in the first or in the last. You will learn about all the features provided while you are writing SOQL statements. This book will make you a SOQL expert by teaching you how to write SOQL statements in an optimized and effective way.</p>
Table of Contents (14 chapters)
Getting Started with SOQL
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we saw the standards to be followed while writing the SOQL statements. The best practices explained in this chapter allow us to retrieve the required records by properly filtering the data. As a developer or an administrator, we should follow these standards and best practices.

Whenever we write SOQL statements to fetch the data, we should be very careful about the limitations. The different limitations with the objects are to be considered while writing the SOQL statements to fetch data from the objects. The other limitations with OFFSET, ORDER BY, COUNT(), toLabel(), and governor limits should also be considered while writing the SOQL statements with these functions.

In the next chapter, we are going to take a look at the recommended installation guidelines to be followed while installing the tools for the SOQL statement execution. These tools will help us execute all the queries that we have discussed so far.