Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Crystal report - 2 tables link together. miss some data

Posted on 2010-09-19
7
287 Views
Last Modified: 2012-05-10
Hi,
I have a enrolment table which show what segment and year candidates enrolled.
I need to create a report show a candidate enrol for segment A and/or enrol segment B.

I have insert the same table 2 times and link to each other, left outer join. So it suppose whover sit for segment A will show up no matter they sit segment B or not.

The problems is enrolment table is including all different segments. I need to filter out just show segment B. Once I applied this filter, it would only show candidates sit for A and B. Candidate sit for segment A, not sit segment B is not showing.

Thanks
Meko
0
Comment
Question by:mekofun
  • 4
  • 3
7 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 33713475
If you filter on the right table in a left join, Crystal converts the join to INNER or EQUAL since it can't compare NULL to the value.

Where are you wrinting the SQL?

mlmcc
0
 

Author Comment

by:mekofun
ID: 33713516
I haven't written any SQL, just jusing the selection expert.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 33713555
Ok.  Crystal wrote it and as I stated it turns the join into INNER since it won't compare NULL to a value.

You will have to do this through conditional suppression.

Remove the selection filter.

Suppress the record based on
Not IsNull({TableB.FIeld})

mlmcc
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:mekofun
ID: 33713602
Sorry to ask, how can I do this :


Suppress the record based on
Not IsNull({TableB.FIeld})

Thanks
meko
0
 

Author Comment

by:mekofun
ID: 33713935
Hi

I got the report  like this. What I need to generate is Cand sit segment A and pass segment A and cand without sit Segment at all (so CandID 123) also come up in my record.
CandID and Segment/Result is in 2 different table.
If I select segment ="A" or null, will not have any result come up because Segment not equal to null in its table.


CandID      Segment      Result
123            
234      A      Pass
234      B      Fail
234      C      Fail

0
 
LVL 100

Expert Comment

by:mlmcc
ID: 33722401
Can you show the raw data you are using?

mlmcc
0
 

Accepted Solution

by:
mekofun earned 0 total points
ID: 33805032
I use subreport - it seems ok now.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question