I am working on a report that reports on the number of two different types of records added to a database weekly. One is a Company name field and the other is a concatenated 'client name' field.
The data looks like this:
Captain Highliner etc.
Captain Highliner Dave Carter etc.
Fretful Architects Sue Carter etc.
Basically Buggered etc.
The first and fourth lines are simply company records and the second and third lines are the contact records.
I need to total the number of contact and company records seperately. So in the above example the results should be Two new contact records and two new company records.
Using Distinct count on the company name field doesn't work because a contact record also has the comany name field listed.
Counting the number of contacts is easy enough but how can I do a distinct count on the number of client name records equal to null?
Any and all suggestions would be greatly appreciated. It is quite possible that I'm going about this completely wrong.
The data looks like this:
Captain Highliner etc.
Captain Highliner Dave Carter etc.
Fretful Architects Sue Carter etc.
Basically Buggered etc.
The first and fourth lines are simply company records and the second and third lines are the contact records.
I need to total the number of contact and company records seperately. So in the above example the results should be Two new contact records and two new company records.
Using Distinct count on the company name field doesn't work because a contact record also has the comany name field listed.
Counting the number of contacts is easy enough but how can I do a distinct count on the number of client name records equal to null?
Any and all suggestions would be greatly appreciated. It is quite possible that I'm going about this completely wrong.