J
John Mulford
When trying to add an 'unjoined table' to a group of Left Outer Joined
tables, jet returns "join expression not supported", "syntax error in FROM
clause", Etc.
The 'unjoined table' (Date_Driver_Table) needs to be included in the
dataset, but can not be joined directly to any of the other table fields.
Purpose - Use the date from the Date_Driver_Table for calculation purposes
with fields created in the group of Left Outer Joined tables.
Parameters - Need to maintain Excel/MS Query - Refresh External Data
compatibility.
Goal - Perform Multiple join types in one query.
Undesired known solutions:
- Fake Out with Dummy field of same data type, however, this is not clean
Ex LEFT JOIN Date_Driver_Table ON DATA.DUMMYFIELD <>
Date_Driver_Table.DUMMYFIELD
- use WHERE clause for join, however, do not want the risk of data being
excluded if primary keys not in structural tables
- separate into 2 queries
Example of failed syntax:
FROM Date_Driver_Table,
((( DATA
LEFT JOIN PRODUCT_TABLE
ON DATA.PRODUCT_CODE = PRODUCT_TABLE.PRODUCT_CODE )
LEFT JOIN PORTFOLIO_TABLE
ON DATA.LENDER_BOND = PORTFOLIO_TABLE.LENDER_BOND )
LEFT JOIN STATUS_TABLE
ON DATA.STATUS_CODE = STATUS_TABLE.STATUS_CODE)
Hopefully, someone has past experience/examples.
Any suggestions welcome.
Thx,
J
tables, jet returns "join expression not supported", "syntax error in FROM
clause", Etc.
The 'unjoined table' (Date_Driver_Table) needs to be included in the
dataset, but can not be joined directly to any of the other table fields.
Purpose - Use the date from the Date_Driver_Table for calculation purposes
with fields created in the group of Left Outer Joined tables.
Parameters - Need to maintain Excel/MS Query - Refresh External Data
compatibility.
Goal - Perform Multiple join types in one query.
Undesired known solutions:
- Fake Out with Dummy field of same data type, however, this is not clean
Ex LEFT JOIN Date_Driver_Table ON DATA.DUMMYFIELD <>
Date_Driver_Table.DUMMYFIELD
- use WHERE clause for join, however, do not want the risk of data being
excluded if primary keys not in structural tables
- separate into 2 queries
Example of failed syntax:
FROM Date_Driver_Table,
((( DATA
LEFT JOIN PRODUCT_TABLE
ON DATA.PRODUCT_CODE = PRODUCT_TABLE.PRODUCT_CODE )
LEFT JOIN PORTFOLIO_TABLE
ON DATA.LENDER_BOND = PORTFOLIO_TABLE.LENDER_BOND )
LEFT JOIN STATUS_TABLE
ON DATA.STATUS_CODE = STATUS_TABLE.STATUS_CODE)
Hopefully, someone has past experience/examples.
Any suggestions welcome.
Thx,
J