Hello,
Can some one tell me how to do a left outer join in Crystal for two (2) different scenarios:
(1.) Two tables and two fields in both tables
(2.) Three tables one field from table A, one field from table B, and two fields from table C. The Left is table A and B.
I knowhow to do a Left outer join with two tables and one field.
The reason for the Left outer join is, I want the Left portion of data to be present even if there is not a match.
Thanks,
Paul
Request clarification before answering.
You would Left Outer from A to C and Right Outer from C to B so that the links are "chained". Unfortunately, since there is no way to link from A to B, if there is no data in C, you'll only get data from A and B will be blank.
The query you show would look like this:
Select * from A
Left join C as u
ON A.first_name = u.first_name
and A.Las_name = u.Last_ name
You don't need to use "Select * from..." for the table you're joining to - just join directly to the table.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.