Is it possible to use the PU_STRING_AGG function as an input to the IN operator?
Here's the snippet I'm trying to get to work:
CASE WHEN
LIPS.POSNR IN ( ' \\'' || PU_STRING_AGG(LIKP, LIPS.UECHA, '\\',\\'' ) || '\\'')
THEN 'Y'
ELSE NULL
END
Not very clear as to how the PU_STRING_AGG handles the values - does it wrap the whole string with an additional set of start/end single quotes? If so - will the single quote delimiter along with a comma turn the string into a list of strings?