July 21, 2014   Posted by: Gary Zimmerman

Last contact SQL query for GoldMine users

Here is a SQL Query to be used to find out which Customers have not been contacted within the past # of days.
Copy paste this Query into the GoldMine SQL Query tab and change the 90 to whatever number you would like it to be.
ALSO, you will need to change the Contact1.Key2 field to be the same field in your database that contains the value “Customer”.
select contact1.company, contact1.contact, contact2.lastconton, contact2.lastcontat from contact1,contact2 where contact1.accountno = contact2.accountno and contact2.lastconton < (GETDATE()- 90) and contact1.key2 like '%Customer%' order by contact2.lastconton
no comments posted in: Blog
There are not tags associated with this post.

Leave a Reply

Your email address will not be published. Required fields are marked *