(based on number of histories in the last month)
Note, this works only on SQL-based GoldMine...
SELECT company, count(ondate)as Activities
FROM contact1,conthist
WHERE contact1.accountno = conthist.accountno
AND MONTH(ondate) = MONTH(getdate())-1
AND YEAR(ondate) = YEAR(getdate())
GROUP BY company,contact1.accountno
ORDER BY Activities DESC
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.