perhaps I am overthinking this, but here is my workflow
- user provides a CSV file with two columns
- table name
- apple
- orange
- banana
- query
- query 1 = select count(*) from apple where colour = 'red'
- query 2 = select count(*) from orange where colour = 'orange'
- query 3 = select count(*) from banana where source_location <> (select top 1 source_location from orange)
- table name
- read the csv
- use feature reader to dynamically read that table from a GDB (table name attribute as input)
- here is where I am overthinking.
here is my desired output table
table namequeryresult countappleselect count(*) from apple where colour = 'red'2orangeselect count(*) from orange where colour = 'orange'5bananaselect count(*) from banana where source_location <> (select top 1 source_location from orange)1I want to be able to run each row from the CSV table, and return the count result of the query.
keep in mind, there are queries that rely on other tables as well. so my thinking is throw all of them into an inline querier. however, Inline querier only allows the input query to be a user parameter, and not decided by an attribute such as the query attribute from the CSV table.
Any thoughts?
cheers,