ForceChallenges
ProblemsDailyNotesInterview
Sign in

Practice

All problemsSOQL practiceApex trigger challengesDaily challengeOpportunityTrigger.oldMapBefore UpdateBulkificationContactValidationGROUP BYSemi-JoinAccountBefore Insert

Interview questions

All questionsAdminAdministrationApexApex TriggerAsync ApexDevelopmentField ServiceField ServiceIntegrationLwc

By company

DeloitteSalesforceAccentureInfosysPwCCognizant

Learn

Study notes

ForceChallenges

AboutContact usPrivacy PolicyTerms of ServiceFor AI assistants (llms.txt)
© 2026 ForceChallenges · Salesforce SOQL & Apex trigger practice
Soql questions14 of 30
SoqlMedium 1 min read

How do INCLUDES and EXCLUDES operators work when querying Multi-Select Picklist fields in SOQL?

Asked atAccentureInfosysTech Mahindra

Answer

Multi-select picklist values are stored as a semicolon-separated string. Use INCLUDES and EXCLUDES rather than = / LIKE.

  • INCLUDES ('A;B', 'C') = (A and B) or C. Semicolon means AND within an option, comma means OR between options.
  • EXCLUDES ('A') = records that do not have A selected.
soql
SELECT Id FROM Candidate__c WHERE Skills__c INCLUDES ('Apex;LWC', 'Java')
soqlmulti-select-picklist
Practice SOQL & Apex
PreviousHow do you query Polymorphic lookup fields like What and Who on Task/Event or Owner using TYPEOF in SOQL?Next What does the ALL ROWS keyword do in SOQL, and how do you query records currently in the Recycle Bin (IsDeleted = true ALL ROWS)?

More Soql questions

  • How do you query Custom Metadata Types (getAll(), getInstance()) without consuming SOQL governor limits?
  • How do you query Big Objects using SOQL vs Async SOQL, and why must you query indexed fields in exact order?
  • What is the governor limit for Aggregate queries and how do rows counted in AggregateResult contribute to the 50,000-row limit?
  • What are the Governor Limits for SOQL (100 synchronous queries, 200 asynchronous queries, 50,000 total rows retrieved)?
  • Which fields are indexed by default in Salesforce, and what makes a SOQL filter non-selective (e.g., !=, NOT LIKE '%abc', leading wildcards, formula fields)?