Created
October 18, 2020 12:23
-
-
Save MamaiRachid/dc75faf68271049a3f30939f945030c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
CT.Id AS SubscriberKey, | |
CASE | |
WHEN CT.datapm__CommunicationRules__c LIKE '%100001%' THEN 'TRUE' | |
ELSE 'FALSE' | |
END AS NewsletterEmail_Consent, | |
CASE | |
WHEN CT.datapm__CommunicationRules__c LIKE '%100002%' THEN 'TRUE' | |
ELSE 'FALSE' | |
END AS SpecialOffersEmail_Consent | |
FROM Contact_Salesforce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment