Beruflich Dokumente
Kultur Dokumente
(GTT) and the SQL WITH operator to help divide-and-conquer complex SQL
sub-queries
(especially those with with WHERE clause subqueries, SELECT clause scalar
subqueries and
FROM clause in-line views). Tuning SQL with temporary tables (and
materializations in the
Use minus instead of EXISTS subqueries - Some say that using the minus
operator instead of
(e.g. rollup by cube) with a single pass through the tables, making them
very fast for
reporting SQL.
Index your NULL values - If you have SQL that frequently tests for NULL,
consider creating
null value built-in SQL function to index only on the NULL columns.
Avoid the use of NOT IN or HAVING. Instead, a NOT EXISTS subquery may run
faster (when
appropriate).
Avoid the LIKE predicate = Always replace a "like" with an equality, when
appropriate.
Use decode and case - Performing complex aggregations with the decode
or "case" functions