You need to sign in to do that
Don't have an account?

Case sensitivity in SOQL QUERY
I have this query:
List<id> accounts1 = [SELECT Id, PersonContactId, PersonEmail, FirstName, LastName, net_Id__pc FROM Account
where net_Id__pc = pFederationID]
I need the constraint net_Id__pc = pFederationID to be case non sensitive. I mean, if net_Id__pc = 'jOeDoe' and pFederationID = 'joedoe' then they should be considered equal. How can this be done?
List<id> accounts1 = [SELECT Id, PersonContactId, PersonEmail, FirstName, LastName, net_Id__pc FROM Account
where net_Id__pc = pFederationID]
I need the constraint net_Id__pc = pFederationID to be case non sensitive. I mean, if net_Id__pc = 'jOeDoe' and pFederationID = 'joedoe' then they should be considered equal. How can this be done?
Comparisons on strings are case-insensitive.
Please refer to:
https://www.salesforce.com/us/developer/docs/dbcom_soql_sosl/Content/sforce_api_calls_soql_select_comparisonoperators.htm
Thanks
Karthik