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 producing a processing order using the first list and the other lists, wherein the processing order is enforced automatically when the SQL statements are subsequently processed.