We are using the Premium Edition of GoldMine and I need the Additional Contact information along with their Email addresses. Not every contact has an email address so I need the contact even when they don't have an email.
This query would be perfect if it included the email:
select contact1.company, contsupp.contact, contsupp.address1, contsupp.address2, contsupp.city, contsupp.state, contsupp.zip
FROM contsupp, contact1
WHERE contsupp.accountno=contact1.accountno and
contsupp.rectype='c'and
contsupp.mergecodes like '%JL%'
I realize the email addresses also reside in the Contsupp table (rectype='P' and Contact='E-mail Address') but don't know how to link this in SQL.
I have also read there maybe a problem with a long email and need to allow for that.
Any help would really be appreciated! Tek-Tips has always come though w/Crystal and I'm hoping the same goes for GoldMine.
Thanks!
- Jackie
This query would be perfect if it included the email:
select contact1.company, contsupp.contact, contsupp.address1, contsupp.address2, contsupp.city, contsupp.state, contsupp.zip
FROM contsupp, contact1
WHERE contsupp.accountno=contact1.accountno and
contsupp.rectype='c'and
contsupp.mergecodes like '%JL%'
I realize the email addresses also reside in the Contsupp table (rectype='P' and Contact='E-mail Address') but don't know how to link this in SQL.
I have also read there maybe a problem with a long email and need to allow for that.
Any help would really be appreciated! Tek-Tips has always come though w/Crystal and I'm hoping the same goes for GoldMine.
Thanks!
- Jackie