What is the default join strategy in Teradata???
Answers were Sorted based on User's Feedback
Answer / dg
The Teradata Cost based optimizer will decide the join
strategy based on the optimum path. The common startegies
followed are from Merge, Hash & Nested Join
Is This Answer Correct ? | 25 Yes | 3 No |
Answer / yuvaevergreen
Three strategies followed by optimizer are:
1.Duplication of rows of one table to every amp
--> This one is opted by optimizer when the non-PI column
is on a small table.
2.Redistribution of the non PI rows of the table to the amp
containing the matching PI row amp.
--> This one is opted when the tables are large. The non PI
column is in one table is redistributed to the amp
containing the matching PI.
3.Redistribute both the rows of the table by hash values.
--> This is chosen when the join is on a column that is not
the PI in either table. This will require the most spool
space.
Is This Answer Correct ? | 13 Yes | 3 No |
Answer / tdguy
i think there is no "default" join strategy. Optimizer
decides the type of strategy based on the best retrieval
path and other parameters to execute the query. Merge join
strategy, nested join strategy, hash join strategy and
product join strategies are the common strategies followed
by TD.
Is This Answer Correct ? | 7 Yes | 1 No |
Hi, If anyone has TD 14 Basics dumps or study materials, please share. nirmaaal1991@gmail.com
we have two tables emp,dept.emp has eno,ename,sal and dept has deptno,dname.how to find maxsal of each dept wise.which join used for joining.
5 Answers Accenture, Cognizant,
What is the use of stored procedures in teradata?
On which column will you take primary index???
what is meant by Hot amp?
How to Extract data from multiple legacy systems?
what are the roles and responsibilities of teradata DBA ?
Explain teradata utilities?
If a Node is busy what are the steps you can take to avoid ?
i have column like below studentid studentname sub1 sub2 sub3 1 aaa 40 70 90 2 bbb 60 80 50 i want to execute every student highest mark in which subject my o/p like below studentid studentname sub3 sub2 1 aaa 90 2 bbb 80
how do you handle ET and UV errors ?
Which is more efficient group by or distinct to find duplicates?