Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Data Display Post Reply Post New Topic
Author Message
Shako
Newbie
Newbie


Joined: 07 Nov 2011
Online Status: Offline
Posts: 12
Quote Shako Replybullet Topic: Data Display
    Posted: 07 Nov 2011 at 10:01pm
Hi

Im trying to display data from 3 tables.
table 1 and 2 are linked via table 1 ID and table 2 and 3 are linked via table 2 ID.

The problem is that if table 3 does not have a link to table 2 the information in table 2 is not displayed.

How do i display the  information even if there is no link to table three?

Table 1 = UUT_RESULT
Table 2 = STEP_RESULT
Table 3 = PROP_RESULT

My Crystal Report Sql Query :
 SELECT `PROP_RESULT`.`NAME`, `UUT_RESULT`.`BATCH_SERIAL_NUMBER`, `UUT_RESULT`.`UUT_SERIAL_NUMBER`, `STEP_RESULT`.`STEP_TYPE`, `STEP_RESULT`.`STEP_NAME`, `STEP_RESULT`.`STATUS`, `PROP_RESULT`.`DATA`, `UUT_RESULT`.`UUT_STATUS`
 FROM   (`PROP_RESULT` `PROP_RESULT` INNER JOIN `STEP_RESULT` `STEP_RESULT` ON `PROP_RESULT`.`STEP_RESULT`=`STEP_RESULT`.`ID`) INNER JOIN `UUT_RESULT` `UUT_RESULT` ON `STEP_RESULT`.`UUT_RESULT`=`UUT_RESULT`.`ID`
 WHERE  `STEP_RESULT`.`STEP_TYPE`<>'SequenceCall' AND `PROP_RESULT`.`NAME`<>'ButtonHit'
 ORDER BY `UUT_RESULT`.`BATCH_SERIAL_NUMBER`, `UUT_RESULT`.`UUT_SERIAL_NUMBER`


IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 08 Nov 2011 at 3:36am
you would need to change the link to table 3 from inner to outer join...this will preserve the selection from table 1 and table 2.
 
I never know which way CR establishes left and right, so you might need to experiment.
 
you can change the link by going to data expert, click on the link tab, then right clicking on the link and you will see options.
 
 
HTH
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.