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
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 |
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 |
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 |
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 |
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 |
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 |
What are the functions of a Parser?
What is the diffrence between Multiload & Fastload interms of Performance?
what are the roles and responsibilities of teradata DBA ?
How is Teradata in current market?
What do you mean by tpt in teradata?
Highlight a few of the advantages that ETL tools have over Teradata.
one table have input no name 10 rao 20 siva 30 srinu 10 rao i want to ouput like this way no name 20 siva 30 srinu 10 rao how it posible in only sql server query?not oracle?
hi guys...i have good experiance in oracle ...now i want to learn teradata? how much of percentage my knowledge is used to understand the teradata? i mean.. if teradata also having sql queries or not?
What is the difference between correlated sub queries and inner queries?
Explain teradata architecture?
Aborted in Phase 2 data acquistion completed in fastload?
Write a single SQL to delete duplicate records from the a single table based on a column value. I need only Unique records at the end of the Query.