Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

crystal reports joins

Posted on 2010-11-23
6
Medium Priority
?
472 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
[X]
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
  • 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
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
LVL 12

Author Comment

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

Accepted Solution

by:
mlmcc earned 1000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

705 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