I was searching for it but could not find any propiate solution for this.
SELECT a, b, c FROM table WHERE d := parameter1 AND e := parameter2;
So if d and e are given, the result query is working.
d parameter is always requiered but e is optional so if there is no input for e I dont want to consider the AND e := parameter2 Statement and getting all the rows with only the d parameter.
(d := parameter1 or parameter1 is null) AND (...)edefined asNOT NULLin the table? If it is, you can useand e = nvl(parameter2,e).