Here's a SQL Query request that comes up often... How to find all secondary contact and their email addresses:
Here ya' go!
select contact1.company, contsupp.contact, contsupp2.contsupref + contsupp2.address1 from contact1, contsupp, contsupp as contsupp2 where contsupp.rectype = 'C' and contact1.accountno = contsupp.accountno and contsupp.recid = contsupp2.linkacct order by contact1.company
Now wouldn't the GoldMine Guide To SQL Queries (http://www.thegmblog.com/sql4gm/) make a great Holiday gift for that special GoldMiner in your life?
Comments (2)
Nice Query ! Helped me clean OUT some Additional Contacts.
FWIW - the query returned all the Referral Records as well as the Additional Contacts.
Thanks !
Posted by Ted Chmura III/TC3 Music | December 19, 2006 10:25 AM
Posted on December 19, 2006 10:25
Good catch --- I updated the query to only bring up secondary contacts.
Posted by Chad Smith | December 19, 2006 4:18 PM
Posted on December 19, 2006 16:18