Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

table for dynamic filter criteria

Mameli75May 11 2020 — edited May 12 2020

Hello,

I would like to filter data item from a table based on select by another table used for dynamic filter criteria ... I suppose something like this below .. the values can be various ... so the select for filtering should be created dinamically.

dinamic table for filter criteria:

id     From      To

1     R*          R*

2     C010     C010

3     T010     T030 

4     ...

e.g. statically would be: select * from mytable where item = C010 or item like R* or item between T010 and T030 ... I'm asking you because maybe there is an inner functionality or macro or function to do so ...

Thanks.

Marco.

This post has been answered by BEDE on May 12 2020
Jump to Answer
Comments
Post Details
Added on May 11 2020
3 comments
634 views