In prompts, our client want to make a IN selection using List of Values,
and, after, the selection would be a “like” of each element selected.
For example, user selects in LOV values [titi, toto, tutu], to choose titi%,
toto% and tutu%
HYPOTHESIS:
The elements of the LOV have the same length.
If so, and if you have the following where condition:
TABLE_WORK.WORKER_NAME IN @Prompt(‘Who is?’, {‘titi’, ‘toto’, ‘tutu’})
… you can rewrite it as follows:
substr(TABLE_WORK.WORKER_NAME, 1, 4) IN @Prompt(‘Who is?’, {‘titi’, ‘toto’, ‘tutu’})
NOTE:
If the TABLE_WORK.WORKER_NAME is INDEXED, with substr you’ll lose any benefit of the index!!
If the elements of the LOV aren’t of the same length… let us know!