Reputation: 59
Is there any way to pass the multiple values in odi scenario Variable.
I am attaching the screenshot for the reference.
Upvotes: 0
Views: 1596
Reputation: 11
See the Oracle function listagg
. For example:
SELECT
LISTAGG (
[col_value1] || ','
)
WITHIN GROUP (
ORDER BY [col_date] desc
) AS [col_alias]
FROM [table];
This would create list of values with comma in between. You could do a semicolon, comma, etc. You could place this in the Source Command feeding the Target Value, or just show it as immediate output in the Target Value.
Upvotes: 1