Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone - I have the following script that I'm using to create a mapping table giving me Master_Id by maximum campaign date. What I'm trying to do is load all the logins from the login table where the Master_ID is within the mapping table. It must be something to do with a where clause but I can't seem to get it right. Can anyone out there please help?
Not sure where Max(CampaignDate) comes into play here. But if your objective is to load only the Master_Ids where Email_Open = 1 then I think this would do the trick.
Hi @samvile18
First question is if you remove the mapping prefix on the table do you get the desired result?
If so, where are you doing the ApplyMap function?
Mark the solution as accepted that solved your problem and if you found it useful, press the like button! Check out my YouTube Channel | Follow me on LinkedIn
I'm trying to reduce the login table to only return the Master_Id's that are within the mapping table...I suppose I don't need to use it as a map, I could keep the table and right keep maybe??
Not sure where Max(CampaignDate) comes into play here. But if your objective is to load only the Master_Ids where Email_Open = 1 then I think this would do the trick.
I didn't explain that very well did I - it's because there are multiple campaigns within the Campaign table so I only want bring back the Id's that match the latest campaign to have been run.