Is it possible to have a stored procedure that can take the conditions as input parameters?
What I mean is not just take a couple of values but also take the fields so that at one time the result is based on say two conditions and another time based on say ten different conditions.

Thank you
Daniel Martinsson