in reply to Dynamic Query

Hmm, there was a similar question in generating various sql arguments dynamically, and on crack recently. Would either of those solutions work?