How do I query a second data source with criteria of each data row result from the first data source
Posted: Wed May 18, 2011 8:48 am
Here is an example:
Data source 1 is from db2:
select id, name, lastorderdate from customers where registerdate > '1/1/2011'
Data source 2 is from mssql:
select ordertype from orders where customerid=? and orderdate>=?
How do I use the id and lastorderdate from the first query to query the second query? Is this possible?
Data source 1 is from db2:
select id, name, lastorderdate from customers where registerdate > '1/1/2011'
Data source 2 is from mssql:
select ordertype from orders where customerid=? and orderdate>=?
How do I use the id and lastorderdate from the first query to query the second query? Is this possible?