7. A method implemented in a computer-readable storage medium and processed by a processor to perform the method, comprising: iterating over Structured Query Language (SQL) statements to identify dependencies between rules embedded in the SQL statements, the SQL statements representing a query or report submitted by a user for execution and the SQL statements are preprocessed by the method processing; adding calculation dependencies for select rules that depend on prior referenced calculations within the SQL statements; and automatically and dynamically generating a processing order for executing the rules based on the dependencies and the calculation dependencies and modifying the SQL statements based on the processing order transparent to the user and the processing order aligned with the rules and the select rules regardless of a number of levels for and complexity of the rules and the select rules, and wherein the user providing the SQL statements does not provide the processing order with the SQL statements.
7. A method implemented in a computer-readable storage medium and processed by a processor to perform the method, comprising: iterating over Structured Query Language (SQL) statements to identify dependencies between rules embedded in the SQL statements, the SQL statements representing a query or report submitted by a user for execution and the SQL statements are preprocessed by the method processing; adding calculation dependencies for select rules that depend on prior referenced calculations within the SQL statements; and automatically and dynamically generating a processing order for executing the rules based on the dependencies and the calculation dependencies and modifying the SQL statements based on the processing order transparent to the user and the processing order aligned with the rules and the select rules regardless of a number of levels for and complexity of the rules and the select rules, and wherein the user providing the SQL statements does not provide the processing order with the SQL statements. 10. The method of claim 7 , wherein iterating further includes accessing a rule list to resolve references to at least some of the rules identified in the SQL statements.