AND (NVL (t.secondary_inventory_name, 'Y') IN (DECODE (:p_sub_inv_name, NULL, NVL (t.secondary_inventory_name, 'Y'), :p_sub_inv_name ) ) )
This CONDITION in query is giving only the data of single parameter value from the list of p_sub_inv_name parameter values. but the same condition used in simple query is working well for the multiple p_sub_inv_name parameter values