I have some users who have a need to create some fairly complex rules with data from a SQL database. It's not enough to just have logical operators like most rule builders, because there's some aggregation/shaping required and the rules might change a fair bit over time.
We're trying to create a rule-builder that essentially allows users to input their own SQL query where the output would be boolean or numeric, which would determine what the rule does.
If any of you have built something like this before, I'm trying to research technologies for the template/sql commander and slick ways of incorporating their SQL rule in my workflow. Any recommendations/examples would be great.