campagnolo1
Technical User
Hello everyone,
I'm trying to figure out how to write a SQL statement in the Add Command box that will let me query tables from 2 different data sources. I have been chasing my tail for the better part of the day with no real success. I'm not even sure if it can be done in CR or if I need a custom Data Source that includes both locations (not even sure if THAT can be done).
SO as an example:
Tables for Datasource 1 are in C:\Datasources\Datasource1Tables for Datasource 2 are in C:\Datasources\Datasource2
Select statement maybe something like this:
SELECT table1.field
FROM table1
IN "C:\Datasources\Datasource1" "Datasource1;"
WHERE table1.field Like "A*"
That already gives me an error, so I can't even continue with a presumed UNION or UNION ALL.
I have tried a few more syntaxes, but each one has given me an "Unrecognized Command" error.
Can anybody help me out here and give me a hint how I can accomplish my task? Unfortunately there is no way to combine the 2 data locations as our accounting/manufacturing software dictates the setup.
Any help is greatly appreciated!
Chris
I'm trying to figure out how to write a SQL statement in the Add Command box that will let me query tables from 2 different data sources. I have been chasing my tail for the better part of the day with no real success. I'm not even sure if it can be done in CR or if I need a custom Data Source that includes both locations (not even sure if THAT can be done).
SO as an example:
Tables for Datasource 1 are in C:\Datasources\Datasource1Tables for Datasource 2 are in C:\Datasources\Datasource2
Select statement maybe something like this:
SELECT table1.field
FROM table1
IN "C:\Datasources\Datasource1" "Datasource1;"
WHERE table1.field Like "A*"
That already gives me an error, so I can't even continue with a presumed UNION or UNION ALL.
I have tried a few more syntaxes, but each one has given me an "Unrecognized Command" error.
Can anybody help me out here and give me a hint how I can accomplish my task? Unfortunately there is no way to combine the 2 data locations as our accounting/manufacturing software dictates the setup.
Any help is greatly appreciated!
Chris