what is use of PI(primary index) AND SI(secondary index)

Answer Posted / gowthami

The data can be access in teradata in 3ways..
1.Full table scan
2.Primary index
3.secondary index
PRIMARY INDEX:This one is Mandatory index.Teradata
distribute data across all amps.so for distribution of data
P.I need.
accessing and retrieval is possible through primary
index.which contains..1)UNIQUE PRIMARY INDEX 3)NON UNIQUE
PRIMARY INDEX 3)PARTITIONED PRIMARY INDEX 4)NO PRIMARY
INDEX(from teradta13)
SECONDARY INDEX:only retrival possibele through secondary
index.Means it doesnot distribute the data.
Using scenario::-There is a primary index on the table.But
we are using other than primary index colums in the where
clause as part of frequently retrival data.In this situation
system does full table scan,To avoid this take SI on the table.

Friends if any one have the better ans plz add.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What exactly do you know about catching in teradata?

649


While creating table my dba has fallback or no fallback in his ddl. What is that?

702


In general, how do you optimze any sql in teradata?

559


What is database exceptions in teradata?

555


What is partitioned primary index (ppi)?

578






How is the teradata different from oracle?

631


What are aggregate tables? How do you design them using teradata?

645


What are the multiload utility limitations?

603


How teradata makes sure that there are no duplicate rows being inserted when its a set table?

567


What is basic teradata query language?

646


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

603


Define views in teradata with syntax.

650


What are the design features involved in teradata?

555


What is the particular designated level at which a LOCK is liable to be applied in Teradata?

610


In BTEQ, how are the session-mode parameters being set?

672