Is PK concept available in Teradata. If it is how can we
create Primary Key for a table in TD

Answers were Sorted based on User's Feedback



Is PK concept available in Teradata. If it is how can we create Primary Key for a table in TD..

Answer / rahul

hi,
primary keys are not mandatory in the teradata,but when
we are specify the pk in column the optimizer creates the
upi in that column. and more over pk composite have no limit
in teradata. the creation of pk is combination of primary
key and not null see the example

create set/multiset table <table name>
(
orderid integer primary key not null,
---
----- etc
);

this creates upi on the orderid column.

if we doesn't mentioned nupi will be created..

thanks

Rahul

Is This Answer Correct ?    3 Yes 0 No

Is PK concept available in Teradata. If it is how can we create Primary Key for a table in TD..

Answer / tdguy

PK is a logical concept and not mandatory in TD. But PI is
mandatory as the distribution of data is completely
dependent on PI. Choice of PI is very important and can
contain upto 16 columns.

Is This Answer Correct ?    3 Yes 0 No

Is PK concept available in Teradata. If it is how can we create Primary Key for a table in TD..

Answer / sasty venkatesh

In teradata primary key concept can be satisfied by creating unique primary index and unique secondary index.

Is This Answer Correct ?    2 Yes 2 No

Is PK concept available in Teradata. If it is how can we create Primary Key for a table in TD..

Answer / ragunath g

alter table <table name> add constraint <constraint name>
primary key<column name>

This is the Syntax for adding PK

Is This Answer Correct ?    0 Yes 0 No

Is PK concept available in Teradata. If it is how can we create Primary Key for a table in TD..

Answer / santhosh kumar

In Teradata don't care about PK.. Table in Teradata need Primary Index not primary key.. so in teradata no need to bother about PK.

Is This Answer Correct ?    1 Yes 2 No

Is PK concept available in Teradata. If it is how can we create Primary Key for a table in TD..

Answer / santhosh

In teradata for storing and retrieving purpose, PE will use
primary index only.. but we are using PK in teradata for creating joins.. soo in Teradata we are using PK and FK..

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Teradata Interview Questions

What are the things to be considered while creating secondary index?

0 Answers  


Can some one tell me the ressolution for the error. I was not able to answer this question in wipro interview. "The transaction exceeded the maximum number of rowhash locks allowed"

1 Answers   Wipro,


Why Fload doesn’t support multiset table?

9 Answers  


Describe the between keyword in teradata?

0 Answers  


How can we build data marts from FSLDM. is there any standard approach for this?Is FSLDM supports place ?

2 Answers  






What are the multiload utility limitations?

0 Answers  


What is teradata? Also, list out some of the primary characteristics of teradata.

0 Answers  


If the query is NOT WRITTEN PROPERLY then what are the recommendations you can give to the developer ?

1 Answers   Teradata,


What is TPD?

0 Answers  


Explain the term 'tables' related to relational database management system?

0 Answers  


In Teradata, how do we Generate Sequence?

0 Answers  


How do you set the session mode parameters in bteq?

0 Answers  


Categories