Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Problem with Outer Join and Microsoft SQL Db's. Post Reply Post New Topic
Author Message
Sensei
Newbie
Newbie


Joined: 12 Sep 2007
Location: United States
Online Status: Offline
Posts: 1
Quote Sensei Replybullet Topic: Problem with Outer Join and Microsoft SQL Db's.
    Posted: 12 Sep 2007 at 12:27pm
Hello all, I'm hoping someone can help me.

Our ERP system runs on M$ SQL.  I try not to meddle with it because any changes are ruined when we upgrade to the latest version of the software. So, I created another small database on the same server with the additional information needed for my reports. 

 
Table 1 is the list of our outside sales reps and their e-mail addresses.

The 2nd set of tables are sales tables from our ERP database. 

Here is my problem.  I am writing a weekly sales report and using an outside program to automate things, I am e-mailing them to our sales reps.  However, if a rep doesn't have any sales, then nothing comes up in crystal when that rep number is entered as a parameter.  Knowing that I wanted a report of some kind to result, I tried to do a left outer join from the rep number field in table 1 (from my database) to the second set of tables I get no records.  If I get no records, then I cannot pull the e-mail address from my table to e-mail a blank report. 

 
I upgraded to XI Developer because I had read on the web that CR9 had problems with outer joins. 

 
What am I doing wrong? 

TIA. 



Edited by Sensei - 12 Sep 2007 at 12:27pm
IP IP Logged
p&ccrystal
Newbie
Newbie
Avatar

Joined: 06 Sep 2007
Location: United States
Online Status: Offline
Posts: 18
Quote p&ccrystal Replybullet Posted: 12 Sep 2007 at 1:08pm
The problem is not the join but the fact the salesperson had no sales. If the sales total shows a null instead of a zero, the result you described is what you should get every time. If it is possible to set a default value in the design of the table that keeps the sales values to zero, then the email addresses for salespeople with no sales will appear.
 
Hope this works for you.
10 year user of Crystal Reports - recently implemented Crystal Server 11.5
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.035 seconds.