« Record Cycling | Main | GoldMine 6.7 and 7.0 Updated »

Where Are My Contacts Coming From!?!?

Ever wondered where your records are coming from? 

Here's a SQL Query that'll show you the number of records created, by their source for 2007.  The dates can easily be changed so show whatever date range you'd like.  This should work on any SQL based GoldMine system. 

select source, count(*) as "#", max(accountno)
from contact1
where createon >= '1/1/2007' and createon <= '12/31/2007'
group by source
order by source

If you're using a dBASE GoldMine, this won't give a summary but will display the information:

select source, company
from contact1
where createon >= '1/1/2007' and createon <= '12/31/2007'
order by source

P.S. Want to learn how to write your own SQL Queries in GoldMine?
Check out
http://www.thegmblog.com/sql4gm/

Comments (2)

Good tip, Chad. Since we run dBase, and I know little about writing SQL queries, I run a filter to do a similar task.

I "police" (for lack of a better term) the contact input on a daily basis by running a filter- where "Createby" is equal to 1/8/07-(yesterday's date). I go to each record that is created and make sure the required info is contained. If it is not, I create a next action for that user to input the full data.

Keep up the good work.

Bob Lozinak:

Chad, The SQL query will work in dBase with a little adjustment:
select source, count(*), max(accountno)
from contact1
where createon >= '1/1/2007' and createon group by source
order by source

That worked fine for me. I just took the alias out.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on January 8, 2007 9:10 PM.

The previous post in this blog was Record Cycling.

The next post in this blog is GoldMine 6.7 and 7.0 Updated.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34