Pls any body reply for this question.
Which circumstance does the optimizing choose a product join?
Thanks for advance

Answer Posted / ab75150

Product join occurs in 2 circumstances.

1) Your stats are out-dated
2) One table is a substantially huge and the other is very
small. In that case, optimizer identifies that is better to
replicate the smaller tables across all amps and then
complete the join.

In later case, product join is not bad. but if the stats
are outdate, better refresh the stats and go ahead with the
execution.

Incase your stats are good and still optimizer goes the
product join path, if you really want to avoid it, you may
force the optimizer not to choose it with following command
DIAGNOSTIC NOPRODJOIN ON FOR SESSION

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi send me the Teradata dumps to my id rajeshanantha@yahoo.co.in Thanks Rajesh. A

2900


How does hashing happens in teradata?

619


Give a justifiable reason why Multi-load supports NUSI instead of USI.

672


What are the commands to make a new table, change a table and remove a table in teradata?

609


How is MLOAD Client System restarted after execution?

595






Explain the term 'columns' related to relational database management system?

546


What is the use of having index on table?

581


What is dimensional modeling?

589


What are the various indexes in teradata? How to use them? Why are they preferred?

589


What is the syntax for case when statement?

585


Explain the term 'foreign key' related to relational database management system?

553


Describe the between keyword in teradata?

612


if collect stats but it show low confidence why?

1184


What is the purpose of upsert command?

589


What is real time and near real time data warehousing?

670