I have kind of an odd problem, I'll try to describe it and maybe if someones seen something similar they might be able to help.
My report has two tables (both are needed in main report as both are involved in creating of parameters so sub reports are out of the question).
I want to join the two tables on the column "DOTCLASS" with an outer join so that the rest of the record will display if that field is null.
If it was Oracle the syntax would simply be
SELECT *
FROM TABLE1, TABLE2
WHERE TABLE1.DOTCLASS =TABLE2.DOTCLASS
AND TABLE2.CATEGORY='CAT1'
however with SQL SERVER Crystal Defines it as
SELECT * FROM
{OJ TABLE1
LEFT OUTER JOIN TABLE2 ON
TABLE1.DOTCLASS = TABLE2.DOTCLASS
}
WHERE TABLE2.CATEGORY='CAT1'
Now that doesn't work as an outer join, it works the same as an inner join would. But if I put my where clause into the from statement it works as I'd expect. My problem is I have no idea how to duplicate that fix within crystal. How do I get that where statement into my join statement?
Thanks in advance!
My report has two tables (both are needed in main report as both are involved in creating of parameters so sub reports are out of the question).
I want to join the two tables on the column "DOTCLASS" with an outer join so that the rest of the record will display if that field is null.
If it was Oracle the syntax would simply be
SELECT *
FROM TABLE1, TABLE2
WHERE TABLE1.DOTCLASS =TABLE2.DOTCLASS
AND TABLE2.CATEGORY='CAT1'
however with SQL SERVER Crystal Defines it as
SELECT * FROM
{OJ TABLE1
LEFT OUTER JOIN TABLE2 ON
TABLE1.DOTCLASS = TABLE2.DOTCLASS
}
WHERE TABLE2.CATEGORY='CAT1'
Now that doesn't work as an outer join, it works the same as an inner join would. But if I put my where clause into the from statement it works as I'd expect. My problem is I have no idea how to duplicate that fix within crystal. How do I get that where statement into my join statement?
Thanks in advance!