I am new to SFMC and SQL and I am learning as I go. My google tech support has failed me on this one. So if this is an obvious, please excuse my ignorance.
I am creating a DE that will contain multiple groups of people based on a series of criteria. Each criteria will need it's own segment label, as the email content will be dynamic based on the segment. My initial though was a series of SQL activities in an automation, with each SQL activity inserting the correct segment value in the "Segment" field along with email and subscriber key. However, I cannot figure out how to insert a default value for a field in the SQL activity. This is the SQL I have right now:
SELECT c.Email, c.SubscriberKey, segment From ent.tableC c INNER JOIN ent.tableM m ON c.identifier = m.identifier WHERE m.CriteriaFeild = 'criteria' I can't use the default value at the DE field level, as it will be different for each group. How can I modify the SQL to insert 'CriteriaLabel' into the segment field for each record pulled?
Thanks for your help.