Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: Report not showing duplicate records Post Reply Post New Topic
Author Message
r140396
Newbie
Newbie
Avatar

Joined: 16 Sep 2007
Location: United States
Online Status: Offline
Posts: 6
Quote r140396 Replybullet Topic: Report not showing duplicate records
    Posted: 17 Apr 2008 at 6:08pm

I have a crystal report in XI and I'm using two queries with a union, and I want to display duplicate records.  I've set the properties in the query to report duplicates, but it's still not working.   Any suggestions?

Golfer Girl
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 18 Apr 2008 at 1:33pm
Are you using "Union" or "Union All"?  "Union" will automatically filter out duplicates.
 
-Dell
IP IP Logged
r140396
Newbie
Newbie
Avatar

Joined: 16 Sep 2007
Location: United States
Online Status: Offline
Posts: 6
Quote r140396 Replybullet Posted: 23 Apr 2008 at 5:24pm
I'm using a Union, but don't know how to use the Union All when using a Universe as my data connection, I don't see an option for Union all, only Union.
Golfer Girl
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 24 Apr 2008 at 6:40am
With a universe as your data connection, there may not be much you can do about it as the universe controls how the SQL is generated.  Here are a couple of things you can try:
 
- Check on your Database menu - if "Select Distinct Records" is checked, then uncheck it.
 
- Is there a field that might contain a value that would make the records from one part of the union different from those in the other?  If so, put that field on your report and change its text color to white so that you can't actually see it.  This way it will be included in the query and will force the records that are duplicates in all of their other fields to display.
 
-Dell
IP IP Logged
kitster100
Newbie
Newbie


Joined: 19 Jul 2011
Online Status: Offline
Posts: 18
Quote kitster100 Replybullet Posted: 17 Aug 2011 at 5:45am
I don't know if, 3 years later, anyone is still interested, but if you go to Database Expert > Links, then choose:

1. Inner (or left outer) join
2. Enforce Join: choose either "Enforce to" or "Enforce Both"

Then the duplicate records will show up. Of course, there may be unforeseen consequences to this, but it appears to be a solution.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 17 Aug 2011 at 8:22am

kitster100, I think those options are only available when joining tables from the data together in the Linking section of the Database Expert.  The original poster was using a Universe to generate the query for the report and those options are not available in that situation.

-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.000 seconds.