Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. Added the email addresses from the Mandrill activity report into a table variable called `@mandrill` and ran the following TSQL to get all `TestimonialRequest`s for ShoreWest that were logged today:
  2.  
  3. `select RequestID,UserId,ClientName,Email,DateTimeStamp from TestimonialRequests where email in (select * from @mandrill) and userid like 'shorewest%' and datetimestamp > '2017-06-28';`
  4.  
  5. | RequestID | UserId | ClientName | Email | DateTimeStamp |
  6. |-----------|-----------------|-------------------------------------------------------|---------------------------------------|-------------------------|
  7. | 65421 | shorewest_1241 | [empty] | dkane@northshorebank.com | 2017-06-28 13:23:34.763 |
  8. | 65422 | shorewest_2782 | [empty] | jeffanderson53211@gmail.com | 2017-06-28 13:23:35.513 |
  9. | 65423 | shorewest_2782 | [empty] | notperfectyet50@yahoo.com | 2017-06-28 13:23:36.170 |
  10. | 65424 | shorewest_1619 | [empty] | rgerstad@gerstadbuilders.com | 2017-06-28 13:23:36.933 |
  11. | 65425 | shorewest_1245 | Aaron M. Andreshak | aaron.andreshak@faithtechnologies.com | 2017-06-28 13:23:37.853 |
  12. | 65426 | shorewest_29005 | Aideliz Guadalupe | guadalupeaideliz@yahoo.com | 2017-06-28 13:23:38.570 |
  13. | 65427 | shorewest_38130 | Alice C. Lundstrom | alundstrom47@gmail.com | 2017-06-28 13:23:39.383 |
  14. | 65428 | shorewest_550 | Allison J. Peterson | areeves@uwalumni.com | 2017-06-28 13:23:40.117 |
  15. | 65429 | shorewest_5282 | Amanda E. Ludwig | aeludwig07@gmail.com | 2017-06-28 13:23:40.803 |
  16. | 65430 | shorewest_3475 | Amanda Grant | admrkgrant@sbcglobal.net | 2017-06-28 13:23:41.503 |
  17. | 65431 | shorewest_1243 | Andrea Donoho AKA Andrea Wittenberg NKA Andrea Hatton | drea2791@gmail.com | 2017-06-28 13:23:42.143 |
  18. | 65432 | shorewest_2028 | Andrea L. Krueger | andreakrueger79@yahoo.com | 2017-06-28 13:23:42.847 |
  19. | 65433 | shorewest_722 | Andrew J. Josten | andrewjosten@att.net | 2017-06-28 13:23:43.563 |
  20. | 65434 | shorewest_1264 | Andrew M. Ausmus | ausmusam@gmail.com | 2017-06-28 13:23:44.280 |
  21. | 65435 | shorewest_3409 | Andrew P. Krueger | akrueger@wipfli.com | 2017-06-28 13:23:44.997 |
  22. | 65436 | shorewest_8654 | Aneta Zafonte | zafonteaneta@gmail.com | 2017-06-28 13:23:45.653 |
  23. | 65437 | shorewest_3038 | Angel Hernandez Acosta | angel.acosta0711@gmail.com | 2017-06-28 13:23:46.387 |
  24. | 65438 | shorewest_2782 | Angela M. Vert | tomvert@prodigy.net | 2017-06-28 13:23:47.353 |
  25. | 65439 | shorewest_5243 | Anjali Peterson | anjalip@ameritech.net | 2017-06-28 13:23:48.103 |
  26. | 65440 | shorewest_2501 | Ann K. Haugen nka Ann K. Scherzinger | annscherzinger@yahoo.com | 2017-06-28 13:23:48.790 |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement