| Editor supports
Examples of Transformations and SQL Query Rewrites: Cartesian Product Elimination - detect Cartesian Joins and propose corrections based on analysis of statement ( for example suggesting dept.deptno = emp.deptno if emp and dept had no join criteria) Expression Transformation identify actions on predicates that might supress index usage such as "where empid + 1 = 1 ", should be "where empid=0" Invalid Outer Join before SELECT * FROM employee e , customer c after SELECT * FROM employee e,customer c Transitivity Before SELECT * FROM item i, product p, price pr After SELECT * FROM item i, product p, price pr Move Expression to WHERE Clause Before SELECT col_a, SUM(col_b) FROM table_a After SELECT col_a, SUM(col_b) FROM table_a NULL Column Before SELECT * FROM employee After SELECT * FROM employee Push Subquery Before SELECT * After SELECT employee.* Mismatched column types identify joins type mismatch such as number = character which might suppress use of Index
|