PL/SQL snippet to dynamically construct a query in a stored procedure depending on the parameters received.