Guest User

Untitled

a guest
Apr 24th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. UPDATE contact join company on contact.FK_Company = company.PK_Company
  2. SET contact.Mailer = 'PeriodicNews',
  3. contact.Mailer_Date = '2018-04-23'
  4. WHERE
  5. NOT contact.Unsubscribe
  6. AND NOT contact.Bounced
  7. AND NOT contact.Spam_Filter
  8. AND (contact.Primary_E_Mail LIKE '%@yahoo.com'
  9. OR contact.Primary_E_Mail LIKE '%@aol.com')
  10. AND contact.SPM_Contact
  11. AND company.Customer
  12. AND company.Business_State in ('ME', 'VT', 'NH', 'MA', 'RI', 'CT', 'NY', 'NJ', 'PA','DE', 'MD')
  13. ;
  14.  
  15. UPDATE contact join company on contact.FK_Company = company.PK_Company
  16. SET contact.Mailer = 'PeriodicNews',
  17. contact.Mailer_Date = '2018-04-23',
  18. company.Customer = company.Customer /*** This is the new line ! ***/
  19. WHERE
  20. NOT contact.Unsubscribe
  21. AND NOT contact.Bounced
  22. AND NOT contact.Spam_Filter
  23. AND (contact.Primary_E_Mail LIKE '%@yahoo.com'
  24. OR contact.Primary_E_Mail LIKE '%@aol.com')
  25. AND contact.SPM_Contact
  26. AND company.Customer
  27. AND company.Business_State in ('ME', 'VT', 'NH', 'MA', 'RI', 'CT', 'NY', 'NJ', 'PA','DE', 'MD')
  28. ;
Add Comment
Please, Sign In to add comment