Solved

crystal reports joins

Posted on 2010-11-23
6
462 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
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

14 Experts available now in Live!

Get 1:1 Help Now