What EXPLAIN does in Teradata, what is High confidence, Low
confidence and No confidence.. And How we improve the query
performance .
Answers were Sorted based on User's Feedback
Answer / farooq
explain provides execution procedure(stratergy).It gives
the estimated time,confidence and memory needed to execute
the query.It is used to analayze all joins and complex
queries.
"EXPLAIN parses the sql atatement but does not execute it".
Is This Answer Correct ? | 24 Yes | 1 No |
Answer / adi
explain gives the execution strategy means what are the
different steps that the query will go through.
HIGH CONFIDENCE:Statistics are collected.
LOW CONFIDENCE:Statistics are not collected. But the where
condition is having the condition on indexed column. Then
estimations can be based on sampling.
NO CONFIDENCE:Statistics are not collected and the
condition is on non indexec column.
Is This Answer Correct ? | 18 Yes | 3 No |
Answer / farooq
HIGH CONFIDENCE:Statistics are collected up to date.
LOW CONFIDENCE:Statistics are not up todate.
NO CONFIDENCE:Statistics are not collected.
Is This Answer Correct ? | 16 Yes | 2 No |
Answer / yuvaevergreen
The explain generally displays the plan which would be
prepared by Optimizer.We can say that(though not accurate)
plan would be the steps followed by Teradata to solve a
query.Confidence levels indicate how well the optimizer is
aware about the demographic data for a particular step.
>>High confidence: Means the optimizer know about the no of
rows that would be returned as a result of that step.
Examples would be when PI statistics exist when the column
or range stats exist or no join involved.
>>Low confidence: Some stats available. Join and stats
available on both sides of the join.
>>No confidence: No stats available. Join involved.
Is This Answer Correct ? | 8 Yes | 1 No |
Answer / yuvaevergreen
1.Explain helps us to know about the stats needed.
Is This Answer Correct ? | 3 Yes | 6 No |
How would you load a very large file in teradata in general? What utility would you use for it? Why?
what is the default character set in teradata,,?
What is the use of stored procedures in teradata?
Why teradata is used?
IN A TABLE CAN WE USE PRIMARY KEY IN ONE COLUMN AND IN ANOTHER COLUMN BOTH UNIQUE AND NOT NULL CONSTRAINS.IF YES HOW?PLZ GIVE ME A EXAMPLE.
What's the syntax of sub string?
What is the particular designated level at which a LOCK is liable to be applied in Teradata?
I want to write one query How to get Matched records and unmatched records in table?
If I wanted to run a TPump job only once per day - basically working on a file that is produced once per day - how would you set up the parameters for that sort of job ?
What is the use of teradata system software?
Difference between stored procedure and macro?
Can you load multiple data files for same target table using fastload?