Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I report on ONLY duplicate records?

Status
Not open for further replies.

jolie555

Technical User
Sep 26, 2002
22
0
0
US
Our AMS is composed of about 18,000 producer files. I want to create a report that will show duplicate entries. I would like to do this by social sec # as names may have been entered differently... Hope this made sense...

Thanks!
Jolie
 
Group by SS# and insert a count summary. Then do a group selection formula where the count of the SS#>1. This will return only duplicates. Software Sales, Training and Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
dgillz' solution is very simple within Crystal Reports itself, but you're going to pull back all records before you can evaluate the count. Depending on the size and integrity of your DB, this may not be ideal.

If possible, use a view to eliminate unnecessary records before they ever get to Crystal. Following is a simple example:

Select
A.Producer
From
Table A
Group By
A.Producer
Having
Count(A.Producer) > 1

In this sample, you will eliminate all single producer records before you pull the data into Crystal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top