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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / tdguy

PI - mandatory and very important in TD. Useful in
distribution and retrieval. Performance of TD highly
depends on PI.
SI - Optional and provides alternate path to data. When
choosen appropriately, this improves the performance of
queries.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More Teradata Interview Questions

What are the design features involved in teradata?

0 Answers  


Explain how spool space is used.

0 Answers  


In a table can we use primary key in one column and in another column both unique and not null constrains.if yes how?

0 Answers  


What is teradata? What are some primary characteristics of teradata?

0 Answers  


Suppose i have data like 2009/12/31 555555534 ' ' Generally last 2 records are wrong format it is going to error table but i don't want load error table if any wrong format in Date column Pass "NULL" how can we do it fast load

4 Answers  


Why Multiload does not supports USI and supports NUSI?

4 Answers  


Can any one explain me the difference between BTEQ and MLOAD,TUMP. All canbe used for same purpose but still differnt methods. why ?

0 Answers  


Difference between Qualify and group

4 Answers   CTS,


What is the primary index in teradata?

0 Answers  


write lock is compatiable with which type of lock?

6 Answers   Infosys,


i am pursuing mca and i want to do tera data .so plz suggest me the best institue in hydrabad who teach real tym scenerio.

1 Answers  


What is meant by a Virtual Disk?

0 Answers  


Categories