2. The method of claim 1 , further comprising: determining whether any statement, from the set of database statements included in the second database statement, if executed, would return no data; and for any statement that would return no data, eliminating the statement from the second database statement, generating a reduced database statement corresponding to the first database statement.
2. The method of claim 1 , further comprising: determining whether any statement, from the set of database statements included in the second database statement, if executed, would return no data; and for any statement that would return no data, eliminating the statement from the second database statement, generating a reduced database statement corresponding to the first database statement. 5. A volatile or non-volatile machine-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 2 .