Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Mutiple links to one table Post Reply Post New Topic
Author Message
sbfpesquire
Newbie
Newbie
Avatar

Joined: 06 Oct 2009
Online Status: Offline
Posts: 4
Quote sbfpesquire Replybullet Topic: Mutiple links to one table
    Posted: 06 Oct 2009 at 10:56am

I trying to create a report that lists the different diagnoses for the people we support.  The report uses 4 tables

1. client demographics
2. client programs which is linked to client demographics via clientId
3.  client diagnoses which is linked to client program by both clientId and programId
4.  system diganosis codes which is linked to 5 fields in the client diagnosis table which identifies up to five diagnoses for the client.
 
My problem is that I want all five diagnoses in the report and can not figure out how to do that.  I am fairly new to Crystal Reports, but have a background in databases.
 
Any advice will be appreciated.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 06 Oct 2009 at 11:14am
I am guessing that in your client_diagnosis table that it is multiple columns in one row per diag.
You can add the diag_code table to the report as many times as you need and left join it to the client_diag table each time on each colum (primary, secondaty, tertiary... or axial, axis 1, axis 2 axis 3 or both). It will alias the table name by adding a 1, 2, 3 after the table name each time you add it. Make sure to left join it each time becasue I am guessing your clients may or maynot have a matching diag on inserted into each column.
IP IP Logged
sbfpesquire
Newbie
Newbie
Avatar

Joined: 06 Oct 2009
Online Status: Offline
Posts: 4
Quote sbfpesquire Replybullet Posted: 06 Oct 2009 at 11:35am
I think I love you.  Worked great.
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.027 seconds.