Custom SQL expression
Posted: Thu Oct 02, 2025 7:15 pm
I have a list in a report and would like to create a SQL filter condition based on that list that does the following:
Input:
TEST1, TEST2, TEST3
Output:
AND (INSTR(ds_queixa_principal, 'TEST1') > 0 OR INSTR(ds_queixa_principal, 'TEST2') > 0 OR INSTR(ds_queixa_principal, 'TEST3') > 0)
Is there any way to do this?
Input:
TEST1, TEST2, TEST3
Output:
AND (INSTR(ds_queixa_principal, 'TEST1') > 0 OR INSTR(ds_queixa_principal, 'TEST2') > 0 OR INSTR(ds_queixa_principal, 'TEST3') > 0)
Is there any way to do this?