Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Report Design/Join problem Post Reply Post New Topic
Author Message
9morty9
Newbie
Newbie


Joined: 06 Oct 2009
Location: Australia
Online Status: Offline
Posts: 3
Quote 9morty9 Replybullet Topic: Report Design/Join problem
    Posted: 06 Oct 2009 at 10:19pm
I have a crystal report with 2 tables.  The first table is a General Ledger transactional table (view table), from which I want to see all trxns.  The second table is a Job Cost sub ledgertable that has a number of the trxns also in the GL table.  I only want to see the Job Number from this table.  So effectively a report that gives me all GL trxns and indicates a job number if the trxn related to a Job cost trxn.
 
GL table fields
Open Year
Journal Entry No.
Trxn Date
Debit amount
credit amount
Account Index (Account Number)
 
Job Table
Journal Entry No.
Account Index (Account Number)
Job Number
 
The Job table has more fields but these are the main ones I want to use.  I am joining on the Account Index (Account Number) and the Journal Entry No.  The problem I have is if I use a left join I don't get the Job number from the Job Table but get all the GL trxns listed correctly.  If I use an outer join I get the job number but get the GL trxns duplicated.  I can understand why this happens on both types of joins but am unsure how I can get what I want in the report, being the trxns with the Job number where applicable?  Hope some of you smarties can help me Smile
 
IP IP Logged
Jyothi Yepuri
Senior Member
Senior Member


Joined: 11 May 2009
Location: Australia
Online Status: Offline
Posts: 127
Quote Jyothi Yepuri Replybullet Posted: 06 Oct 2009 at 10:37pm
Left outer join should do
do you require all job numbers?

post sample data.

Jyothi
IP IP Logged
ANILNAVIN
Newbie
Newbie


Joined: 05 Apr 2010
Location: India
Online Status: Offline
Posts: 1
Quote ANILNAVIN Replybullet Posted: 05 Apr 2010 at 8:37pm
Originally posted by Jyothi Yepuri

Left outer join should do
do you require all job numbers?

post sample data.

Jyothi
 
I am using Crystal Report 8 and designing a cross table report with 2 tables. One Order Table (OrderNo,StyleNo) second Despatch table with orderNo,StyleNo,InvoiceNo,Qnty fields. I have linked (using left outer join) first table with second one on fields OrderNo,StyleNo. I need despatch columns by InvoiceNos. Left Outer Join is not working...pls advise 


Edited by ANILNAVIN - 05 Apr 2010 at 8:41pm
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.031 seconds.