I am writing a report/query that pulls back a certain amount of records and then further filters them using rules that they can build. I was going to store the rules in an sql table and then use them when they call the query. How can I pass those rules into the query? an example of a rule is flag false when product was used in the last 120 days. Thanks in advance.