Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: linking tables with diff levels of records Post Reply Post New Topic
Author Message
John2Chr
Newbie
Newbie
Avatar

Joined: 11 Apr 2012
Online Status: Offline
Posts: 10
Quote John2Chr Replybullet Topic: linking tables with diff levels of records
    Posted: 26 Apr 2012 at 6:58am

I have two tables.  One table has employees which is much more detailed then the department table.  There are Four fields which I can link the employee table to the department table. (1.)Year, Budget Org, Budget Fund, Class org.  The issue is that the employee table has many more records because it is not at the department level which contains many employees.

How can I link the tables without it doubling/tripling up?  Is this possible in crystal using a link command or index etc. or should I use a subreport?

IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 27 Apr 2012 at 7:09am
well...
 
there are so many different answers that come to mind.
if you only join the tables together using 1 of the possible methods, that might work.
 
if by join your data the way you think it should join will produce duplicates, then regardless of what you do, subreport etc, you will always get duplicates.
 
my generic answer is to use a stored proc, which I know is not always a possibility, but they give you the greatest flexibility for just such cases and you can see the results way faster IMO than constantly refreshing the report.
 
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.000 seconds.