deathstarvulcan
MIS
Hi,
I'm new to Crystal reports (version 10) and hope that some clever person can assist. My problem is that I have found that I cannot use outer joins when setting up a report. I can set the join property but once the report is generated i get an error. Crystal works fine when only using inner joins.
The error message get is :
Failed to open rowset, details:23000:you have an error in your SQL syntax; check that the corresponds to your MySQL server version for the right syntax to use
A copy of the SQL generated is below if this helps....
SELECT `detailTbl`.`debtor_no`, `detailTbl`.`clnt_no`, `detailTbl`.`last_pmt_date`, `detailTbl`.`return_date`, `detailTbl`.`return_code`, `detailTbl`.`current_balance`, `acctudef039Tbl`.`Int_CO_Dt`, `cltrTbl`.`co_code`
FROM {oj ((`crsdata`.`detailTbl` `detailTbl` LEFT OUTER JOIN `crsdata`.`acctudef039Tbl` `acctudef039Tbl` ON (`detailTbl`.`debtor_no`=`acctudef039Tbl`.`debtor_no`) AND (`detailTbl`.`dd_loc`=`acctudef039Tbl`.`dd_loc`)) INNER JOIN `crsdata`.`masterTbl` `masterTbl` ON (`detailTbl`.`debtor_no`=`masterTbl`.`debtor_no`) AND (`detailTbl`.`dm_loc`=`masterTbl`.`dm_loc`)) INNER JOIN `crsdata`.`cltrTbl` `cltrTbl` ON `masterTbl`.`coll_unit`=`cltrTbl`.`coll_unit`}
As always any help provided i will be eternally grateful for.
Merry Christmas
I'm new to Crystal reports (version 10) and hope that some clever person can assist. My problem is that I have found that I cannot use outer joins when setting up a report. I can set the join property but once the report is generated i get an error. Crystal works fine when only using inner joins.
The error message get is :
Failed to open rowset, details:23000:you have an error in your SQL syntax; check that the corresponds to your MySQL server version for the right syntax to use
A copy of the SQL generated is below if this helps....
SELECT `detailTbl`.`debtor_no`, `detailTbl`.`clnt_no`, `detailTbl`.`last_pmt_date`, `detailTbl`.`return_date`, `detailTbl`.`return_code`, `detailTbl`.`current_balance`, `acctudef039Tbl`.`Int_CO_Dt`, `cltrTbl`.`co_code`
FROM {oj ((`crsdata`.`detailTbl` `detailTbl` LEFT OUTER JOIN `crsdata`.`acctudef039Tbl` `acctudef039Tbl` ON (`detailTbl`.`debtor_no`=`acctudef039Tbl`.`debtor_no`) AND (`detailTbl`.`dd_loc`=`acctudef039Tbl`.`dd_loc`)) INNER JOIN `crsdata`.`masterTbl` `masterTbl` ON (`detailTbl`.`debtor_no`=`masterTbl`.`debtor_no`) AND (`detailTbl`.`dm_loc`=`masterTbl`.`dm_loc`)) INNER JOIN `crsdata`.`cltrTbl` `cltrTbl` ON `masterTbl`.`coll_unit`=`cltrTbl`.`coll_unit`}
As always any help provided i will be eternally grateful for.
Merry Christmas