Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Selecting records-joining tables Post Reply Post New Topic
Author Message
sinjac
Newbie
Newbie


Joined: 28 Jan 2009
Online Status: Offline
Posts: 1
Quote sinjac Replybullet Topic: Selecting records-joining tables
    Posted: 28 Jan 2009 at 10:20pm
I have two address tables: customerbillto and shipto. Need to create a report that finds all customerbillto records that don't have any shiptos linked to them. Right now I do a left outer join for the two tables and the report displays all customer records, both those that do and don't have shipto records. How do I set up the selection criteria so the report only selects the customer records that do not have any shiptos, so I don't have to look at the remaining records.  Essentially what I want is only the billto records that do not have any shipto records linked to them.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 29 Jan 2009 at 6:28am
I would apply a filter...Selection Formulas/Record.  ISNULL({linking field}) should do.  This would be the field in the 'right' table for a left outer join...if there is a matching record, it won't be null, and will be skipped in the report.
 
Hope this helps
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.