Print Page | Close Window

Crystal Report 7 Linking tables

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=4599
Printed Date: 29 Apr 2024 at 1:30am


Topic: Crystal Report 7 Linking tables
Posted By: pellis
Subject: Crystal Report 7 Linking tables
Date Posted: 22 Oct 2008 at 11:01am
Hi Guys,
I am at a client's office and they are using Crystal Report 7.  I am having a problem getting CR to link more than 3 tables.  It will successfuly link up to 3 tables, but when I add a fourth one, the data willl not show up and the links will not show in the query.  I have four tables:
 
Patient_Status links to Patient on Statuscode
Patient links to Assoc_Client on Patient Number,
Assoc_Client links to Client on Client Number
 
Here is the sql query:
 
SELECT
    Client."ClientNumber", Client."ClientName",
    Assoc_Clients."HospAcctNumber", Assoc_Clients."AdmissionDate", Assoc_Clients."dischargeDate", Assoc_Clients."TotalAmountDue", Assoc_Clients."ReferralDate",
    patient."PatientNumber", patient."FirstName", patient."LastName", patient."SpecialistID", patient."StatusCode", patient."Terminated"
FROM
    { oj ("CTSY2K"."dbo"."Client" Client INNER JOIN "CTSY2K"."dbo"."Assoc_Clients" Assoc_Clients ON
        Client."ClientNumber" = Assoc_Clients."ClientNumber")
     INNER JOIN "CTSY2K"."dbo"."patient" patient ON
        Assoc_Clients."PatientNumber" = patient."PatientNumber"}
WHERE
    (patient."StatusCode" = '33' OR
    patient."StatusCode" = '291' OR
    patient."StatusCode" = '290' OR
    patient."StatusCode" = '289' OR
    patient."StatusCode" = '288' OR
    patient."StatusCode" = '126') AND
    patient."Terminated" = '0'
ORDER BY
    Client."ClientName" ASC
 
It will not show the data from the Patient_Status table, but it will show data from the other three.  Is there a limitation on how many tables you can link in this version?  Can anyone offer a suggestion.  Thanks
 
 
 
 
                                                         
                                                    



Print Page | Close Window