Dear JurassicKarp,
Here is an explanation of joins that I use for my students.
Table A (Clients)
Client Id (Link Field)
Table B (Orders)
Client ID
Equal Join:
Join from Table A to Table B
You are telling Crystal, please show me all the records where Client ID's match in Table A and in Table B.
Clients with Orders!
Left Outer Join
Join From Table A to Table B
You are telling Crystal, please show me all the records in Table A and if there are matches in Table B, show those too!
All Clients, and any Client Orders.
Right Outer Join
Join From Table A to Table B
You are telling Crystal, show me all the records in Table B and if there are matches in Table A, show those too.
All Orders and any matching Clients. (This would be useful if you kept historical Order data forever, but deleted customers who placed no orders within 2 years say).
For more information on joins in Crystal, go to the Help Topics Index and search for Join Types. It has a rather exhaustive explanation.
I use a diagram in class to help people remember this:
To draw yourself a diagram, draw 2 circles that intersect.
Place an equals sign = in the part of the circles that intersects and shade it, place the word Left in the Left portion of the circle and the word right in the right hand circle.
L grabs Left side and intersection,
R Grabs Right side and intersection,
Equals grabs just the intersection.
Hope this was helpful,
ro
Rosemary Lieberman
rosemary@microflo.com,
Microflo provides expert consulting on MagicTSD and Crystal Reports.