What is the difference between PRIMARY INDEX and UNIQUE PRIMARY INDEX in Teradata?

1 Answers
Answered by suresh

Difference Between PRIMARY INDEX and UNIQUE PRIMARY INDEX in Teradata

Difference Between PRIMARY INDEX and UNIQUE PRIMARY INDEX in Teradata

PRIMARY INDEX is a column or set of columns in a Teradata table that determines the distribution of rows across AMPs, whereas UNIQUE PRIMARY INDEX ensures that no two rows can have the same value for the specified column(s).

While PRIMARY INDEX is used for distributing data evenly across AMPs for faster query performance, UNIQUE PRIMARY INDEX adds a constraint to ensure data integrity by enforcing uniqueness on the specified column(s).

It is important to choose the appropriate index type based on your specific requirements to optimize your Teradata database performance effectively.

Answer for Question: What is the difference between PRIMARY INDEX and UNIQUE PRIMARY INDEX in Teradata?