I am trying to do a transformation that is taking a table input for an id # and using that id # to run lookup on another DB. Unfortunately, the results on the 2nd DB and the table i am looking from doesn't contain the ID # so i want to add a line such as
"123" as id
in the select statement of the 2nd table input: Currently my query looks something like this:
select ? as id, ip_address, date
from table
where name = (select name
from table2
where id = ?
)
When i try to run this in pentaho i get an error, however, if i change it to
select ip_address, date
from table
where name = (select name
from table2
where id = ?
)
then it works just fine. I made sure i am passing the correct number of variables to replace, but for some reason i can't replace variables in the select statement. How would i go about doing this?
"123" as id
in the select statement of the 2nd table input: Currently my query looks something like this:
select ? as id, ip_address, date
from table
where name = (select name
from table2
where id = ?
)
When i try to run this in pentaho i get an error, however, if i change it to
select ip_address, date
from table
where name = (select name
from table2
where id = ?
)
then it works just fine. I made sure i am passing the correct number of variables to replace, but for some reason i can't replace variables in the select statement. How would i go about doing this?