Solved

crystal reports joins

Posted on 2010-11-23
6
465 Views
Last Modified: 2012-05-10
How do you join sql server tables in the below scenario in crystal?

Table 1.
Table1ID(PK)
ReelNumber -accepts Table3 ChildReelNumber values or Table2 ReelNumber values

Table2
Table2ID(CPK)
ReelNumber(CPK)

Table3
Table3ID
Table2ID(CPK)
ReelNumber(CPK)
ChildReelNumber(values are based on column ReelNumber i.e if ReelNumbe is C2525 and tehre are five ChildReelNumber numbers each will be named C2525/1 ,C2525/2 etc etc)

My current link are giving duplicates based on the number of ChildReelNumber rows.

How can i sort this out?
0
Comment
Question by:NormanMaina
  • 4
6 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 34195990
I don't understand the structure you are describing.

Please provide a brief description of each table and how it relates to the other two?
0
 
LVL 12

Author Comment

by:NormanMaina
ID: 34196123
0
 
LVL 12

Author Comment

by:NormanMaina
ID: 34196131
am hoping the above diagrams explain my problem.

The other way would be to create a formula to output data in the report depending on the printstage.
I tried that but still got the same results.
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.

 
LVL 12

Author Comment

by:NormanMaina
ID: 34196213
I don't mind modifying the db if i have to.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 34197169
That is the way linking works.  Each record in a table is linked to each record in the other tables.  Since you have multiple records in one of the tables you will get multiple copies of the other fields.

One way around this in the report would be to put the information into the group header or footer so it is displayed only once.

mlmcc
0
 
LVL 12

Author Closing Comment

by:NormanMaina
ID: 34215526
I had to make changes to the database design
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Gridview selected row 9 43
Regex validation 2 24
MYSQL database problem within Coldfusion 2016 environment 12 31
ASP/VB email question 4 30
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now