1. A method implemented in a computer-readable storage medium and processed by a processor to perform the method, comprising: receiving Structured Query Language (SQL) statements; passing over the SQL statements in a first iteration and compiling a first list of first rules embedded within the SQL statements that are independent of other rules included within the SQL statements; iterating over the SQL statements for two or more subsequent iterations and compiling other lists for the other rules that are dependent on prior rules already processed and already part of an existing list; and automatically and dynamically producing a processing order using the first list and the other lists and the first list of rules, the other rules, and the prior rules are aligned in the processing order regardless of a number of levels for and complexity of the first list of rules, the other rules, and the prior rules, wherein the processing order is enforced automatically when the SQL statements are subsequently processed, the SQL statements modified based on the automatically and dynamically produced processing order, and wherein a user providing the SQL statements does not provide the processing order or the SQL statements, the method ensures proper ordering of the SQL statements in the modified SQL statements transparent to the user providing the SQL statements.