Archives of the TeradataForum
Message Posted: Tue, 08 Jun 2004 @ 14:33:05 GMT
Naveen Ram Prasanna Kambhoji wrote:
It's hard to tell just be reading a comlex source code...
Any join using Between or inequality will result in a product join. As long as the number of rows in one of those table is relatively small, this should be no problem.
Did you check if statistics exist on those columns used in Join and Where conditions?
Which release are you running? Before V2R5.0.3 (or 5.0.2?) some optimizations wouldn't be applied to ANSI Join Syntax, so rearranging the Join order might help a bit in older releases.
Another way before V2R5.0 would be using Derived Tables to force the optimizer to use a diferent join order.
But the main problem is probably that you as a newbie to Teradata are supposed to optimize that complex query. Even afters years this might be an advanced task...
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|