N
Gossip Blast Daily

Is SOQL case sensitive

Author

Emily Baldwin

Updated on May 07, 2026

Salesforce Object Query Language(SOQL) is case insensitive which means we can write in Uppercase, Lowercase and in both Lower and Uppercase.

Is Salesforce case-sensitive?

ARE SALESFORCE IDS CASE SENSITIVE? Salesforce has two versions of the id for each record. There is a 15-character id that is case sensitive and might have duplicate ids if treated as case insensitive. There is also an 18-character version of the same id which appends 3 more letters to make in case insensitive.

Can we use * in SOQL?

In short, if we are making a SOQL query on a custom object, it will return a list of custom objects. Moving forward, SOQL does not support advanced features of SQL like * and joins. For example, we cannot do “SELECT * ” to perform a selection of all the values.

What is SOQL?

SOQL stands for Salesforce Object Query Language. You can use SOQL to read information stored in your org’s database. SOQL is syntactically similar to SQL (Structured Query Language).

Is Apex Code case-sensitive?

Apex is Case In Sensitive. Variable and method names are case insensitive. References to object and field names are case insensitive. SOQL and SOSL statements are case insensitive.

Are Sets case sensitive?

“Each database name specified by the target is a string of characters, and the string is case-insensitive. That is, for any character that is a letter, the origin may use either upper or lower case, regardless of how the target has specified the name.” Result set names are deemed to be case sensitive.

Are Salesforce API names case sensitive?

All field API names in Salesforce, standard and custom, are case insensitive.

What types of joins does SOQL support?

In SOQL statements, Inner and Outer Joins are used to join related objects like parent object and child objects to retrieve all related fields from base objects including the records of non refer related object.

Is SOQL a database?

What can you use SOQL for? Unlike SQL, SOQL is a language exclusively for querying the database rather than modifying data like in traditional SQL. There are no INSERT or UPDATE statements. Changing data is done using Salesforce’s UI or Apex DML, part of Salesforce’s proprietary programming language.

Is SOQL and SQL same?

You’ll find writing SOQL queries pretty easy. But here’s what you need to know: Although SQL and SOQL are similar, they’re not the same. SOQL doesn’t support some of the more advanced features that the SQL SELECT statement does.

Article first time published on

Is Apex difficult to learn?

Learning Apex will not be easy but you can do it. Persevere! It is a journey that will make you smarter and more desirable on the job market. The use of the above 4 resources combined with the 2 tools and 3 attitudes will bring triumph to your clutch.

Can I use SOQL in loop?

SOQL For Loop Formats. SOQL for loops can process records one at a time using a single sObject variable, or in batches of 200 sObjects at a time using an sObject list: … Consequently, it is a little more difficult to understand and use, but is the optimal choice if you need to use DML statements within the for loop body.

Can we write SOQL in trigger?

SOSL queries are only supported in Apex classes and anonymous blocks. You cannot use a SOSL query in a trigger.

Is JavaScript case sensitive?

JavaScript is Case Sensitive All JavaScript identifiers are case sensitive.

What is an apex case?

Wed Jul 15 2020. Apex provides a switch statement which can be used to test whether an expression matches one of several values and branches accordingly. A switch statement can be used to replace multiple if statements.

What does case insensitive mean?

Filters. (computer science) Treating or interpreting upper- and lowercase letters as being the same. Often used in computer science to indicate a comparison or equality test that does not distinguish between letters that only differ in case. adjective.

How do I find the field API name in Salesforce?

  1. Go to Setup.
  2. Go to App Setup | click Customize.
  3. Locate the object the click Fields.
  4. Look for “API Name” column value in “Custom Fields & Relationships” section.

How do I get the field label and API name in Apex?

get( a_Field_Name ). getDescribe(); // Label of the field System. debug(‘-=-=Label:’ +a_Field_Description. getLabel()); // API Name of the field System.

Are origin names case sensitive?

The origin field value is a case-sensitive match for the source origin string.

Is HashSet case sensitive C#?

One sidenode: when a ‘normal’ HashSet<string> (case sensitive) is created, it’s impossible to create a contains method that is efficient. This because the hashes of the elements are created when they are added to the HashSet .

Is set case sensitive in python?

python is case sensitive.

Is SOSL faster than SOQL?

Both SOQL WHERE filters and SOSL search queries can specify text you should look for. When a given search can use either language, SOSL is generally faster than SOQL if the search expression uses a CONTAINS term.

Why does Salesforce use SOQL?

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.

Which is better SQL or Salesforce?

Microsoft SQL Server vs Salesforce Platform When assessing the two solutions, reviewers found Microsoft SQL Server easier to use, set up, and administer. … When comparing quality of ongoing product support, reviewers felt that Microsoft SQL Server is the preferred option.

Does SOQL support join?

Salesforce Object Query Programming language (SOQL) is one of the key tools to query the data, to convert it into the required information. … You will also be able to leverage SOQL Join Objects to establish joins and relationships between various objects. Read along to learn more about SQL Join Objects.

What is the difference between SOQL and SOSL?

SOQLSOSLSearch Focus:Accuracy. Gives full set of results that match criteria.Relevance & Speed. Similar to Google Search. Weightage placed on recently viewed records.Search ScopeCan search 1 object at a time.Can search multiple objects at a time.

Can you join tables in SOQL?

If you’re familiar with SQL, the first thing you might want to do is join the two tables and run a query against their fields. SOQL supports this through relationship queries.

Is Salesforce SOQL based?

However, Salesforce uses slightly different SQL. It performs similar functions to standard SQL, but in a manner that is simpler. Salesforce calls its own query language known as SOQL.

What is SQL and SOQL?

SQL Is a Query Language to retrive data on Relational Database(Oracle,My SQL). SOQL is a Query Language to retrive data from salesforce objects.

Does Salesforce need SQL?

Having your Salesforce data accessible in SQL gives you an easy way to extend and advance your sales analysis. … You can use SQL to join Salesforce data with product data.

Is Apex a OOP?

Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on Salesforce servers in conjunction with calls to the API.