I connected to the SQL database and got results using a SQL query.
Now I have to connect to the DB2 database using a query but in where condition of the query, one of the column names of DB2 table equals to the value from the first query from SQL.
Please advise how to get this through
Example:
SQL query: Select col1, Col2, Col3, Col4 from Tbl1 where creationdate between 01-Dec-2020 and 14-Dec-2020
DB2 query: Select Col5,Col6,Col7 from Db2TBL2 where col1=(col1 value from SQL DB)