Quote Originally Posted by Thobela View Post
In principle what I want is to generate the predicate based on the user that is logged on.
Have you considered dynamic sql?
Just build the statement on the fly and execute it via "execute immediate".