Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3510

Re: I would like to map a column in a query to a sql statement - can this be done?

$
0
0

In this particular case, there's no reason why you should call the sql function for every record in your input stream. Calling a sql function repeatedly would kill your performance.

Define a global variable $fiscal_period_code. Give it a value in a script:

     $fiscal_period_code = sql('<Datastore>', 'select fiscal_period_code from...');

And map the BUDGET_TYPE column to $fiscal_period_code.


Viewing all articles
Browse latest Browse all 3510

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>