Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Report on missing data Post Reply Post New Topic
Author Message
FredOh
Newbie
Newbie
Avatar

Joined: 01 Apr 2009
Online Status: Offline
Posts: 18
Quote FredOh Replybullet Topic: Report on missing data
    Posted: 06 Apr 2009 at 1:37pm

Hi,  I’m new to Crystal Reports. I’m trying to create a report that will return all customers from Table1 that do not have sales listed in Table2.  It’s not that there is field with a null value in Table2. It’s that Table 2 lacks any row for that customer. Any help with this would be greatly appreciated. Thanks.

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 06 Apr 2009 at 2:11pm
Do a left join between the 2 tables on customer getting all records from table1.
Group on Customer from table1.
Conditionally suppress the group header as:
isnull(table2.customer)
 
These should be null because there was no matching record using the left join.
IP IP Logged
FredOh
Newbie
Newbie
Avatar

Joined: 01 Apr 2009
Online Status: Offline
Posts: 18
Quote FredOh Replybullet Posted: 07 Apr 2009 at 7:26am
Thanks DBlank! Thanks for the quick responce and for the answer to my problem.  I've got a ways to go with this report but I tried the left join and was able to get the initial data I needed!
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.031 seconds.