22. A computer system comprising: at least a processor configured for performing; associating a query language statement with a query profile; determining a query block for the query language statement, wherein the query block is a part of a rewritten query language statement for optimization and is generated or transformed from one or more other query blocks during compilation of the query language statement to become a part of the query language statement; associating one or more tuning hints with the query block; resolving an unresolved hint in conflict with another tuning hint, wherein the unresolved hint is stored in a hint data structure on a tangible computer readable storage medium or a computer storage device; and a tangible computer readable storage medium or a computer readable storage device configured for: storing the one or more tuning hints for the query block, wherein at least one of the one or more tuning hints associated with the query block is retrieved for and applied to the query block during the compilation of the query language statement.
22. A computer system comprising: at least a processor configured for performing; associating a query language statement with a query profile; determining a query block for the query language statement, wherein the query block is a part of a rewritten query language statement for optimization and is generated or transformed from one or more other query blocks during compilation of the query language statement to become a part of the query language statement; associating one or more tuning hints with the query block; resolving an unresolved hint in conflict with another tuning hint, wherein the unresolved hint is stored in a hint data structure on a tangible computer readable storage medium or a computer storage device; and a tangible computer readable storage medium or a computer readable storage device configured for: storing the one or more tuning hints for the query block, wherein at least one of the one or more tuning hints associated with the query block is retrieved for and applied to the query block during the compilation of the query language statement. 23. The computer system of claim 22 in which the processor is further configured for: transforming the query block from a parent block into a child block during compilation of the statement.