I have to create a pl/sql function which takes seven input parameters.
Problem is user can pass any of these parameters, in any combination such that remaining parameters would be null. Thus a number of combinations is possible. And I have to query a table using these parameters after removing null parameters.
Is there a way to do this without using number of nested ifs for checking null values?
Also inculde checking the input parameters is null or not in the WHERE clause
For example , suppose the input parameters are parameter1 , parameter2 ,parameter3
If the parameter1 is null , it will always return true for this parameter ‘s conditon.