Left Outer Join in Crystal Repors XI w/ MySQL

I'm connecting to a mySQL 4 database from Crystal XI using the odbc driver 3.51

When i change an inner join to a left outer join it creats some bizzare syntax...

Some googling suggests this can be fixed with a registry tweak but all references are made to older versions of crystal.

I tried: [HKEY_CURRENT_USER\Software\Business Objects\Suite 11.5\Crystal Reports\DatabaseOptions\OuterJoin]
"PlusEqual"="myodbc3"

...but it didn't help.

Thanks in advance!

Lee
SELECT `opencall1`.`callref`, `opencall1`.`status`, `opencall1`.`cust_name`, `opencall1`.`costcenter`, `updatedb1`.`updatetimex`, `updatedb1`.`timespent`, `opencall1`.`probcode`, `updatedb1`.`repid`, `pcdesc1`.`info`, `opencall1`.`fixcode`, `rcdesc1`.`info`, `updatedb1`.`updatetxt`
 FROM   {oj ((`swdata`.`opencall` `opencall1` INNER JOIN `swdata`.`updatedb` `updatedb1` ON `opencall1`.`callref`=`updatedb1`.`callref`) LEFT OUTER JOIN `swdata`.`pcdesc` `pcdesc1` ON `opencall1`.`probcode`=`pcdesc1`.`code`) LEFT OUTER JOIN `swdata`.`rcdesc` `rcdesc1` ON `opencall1`.`fixcode`=`rcdesc1`.`code`}
 WHERE  (`opencall1`.`probcode` LIKE '%VNT3%' OR `opencall1`.`fixcode` LIKE '%VNT3%') AND (`updatedb1`.`updatetimex`>=1270080000 AND `updatedb1`.`updatetimex`<=1271980800)

Open in new window

LVL 11
tickettAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
When you filter based on the right table of a left join, Crystal automatically converts it to an inner join since Crystal cannot compare NULL

mlmcc
0
tickettAuthor Commented:
No this isn't one of those problems.

It's a known crystal bug (where it puts this weird {oj syntax in). Unfortunately all the google results are referring to very old versions of crystal.
0
mlmccCommented:
I don't know.

mlmcc
0
tickettAuthor Commented:
Persistence paid off! Finally one of the registry hacks worked:

[HKEY_CURRENT_USER\Software\Business Objects\Suite 11.5\Crystal Reports\Database\QueryBuilder\OuterJoinEscSeq]
"NoOuterJoinEscSeq"="MyODBC3"

Now to try and hack the server!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tickettAuthor Commented:
I'm still trying to work out how to get the report to work in my web application (i managed to get it working within Crystal Reports with the above-mentioned registry hack).

Any ideas?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.