my problem is that I am trying to build a SELECT statement, that will depend on numbers of variables that I will pass to them.
Important thing to know that I use Oracle database.
Is there any efficent way to build such statement?
for example I have three varaibles (Connected with "AND' keyword) that I can pass to database and it should give me one unique result. opt1 - (WHERE var1=x AND var2=y AND var3=z)
But also there is an option that I will pass only two varaibles and get results opt 2 - WHERE var1=x AND var2=y) one variables or none and get every record from database.
I don't want to build countless number of different select statement. There must be a way of doing this elegant.
PS. This is a problem connected with JDBC adapter from webmethods. Maybe anyone know how to solve this in this enviroment?