08 January,2011 by Tom Collins
When constructing a sql statement on DB2 , keep in mind the processing order of the various parts of the sql statement.This could allow significant performance gains
FROM
JOIN ON
WHERE clause
GROUP BY and aggregate
HAVING clause
SELECT
ORDER BY
FETCH FIRST
For example, you could consider the initial dataset brought in by the FROM clause , and the WHERE clause.
Or could you create more efficient JOIN ON clauses?
Ref:Jack Vamvas(http://www.dba-db2.com)
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |