I have a function in my Oracle database. What I need is just to extend it with one parameter as a set of ids and check if there are some ids from another joined table in this co