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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the five phases that come under MultiLoad Utility.

591


What is teradata and why it is used?

593


What are the 5 phases in a multiload utility?

617


Explain and compare pros and cons of snow flake schemas?

613


What is a three-tier data warehouse?

637






How do you do backup and recovery in teradata?

553


Mention the procedure via which, we can run Teradata jobs in a UNIX environment.

574


My table got locked during mload due to a failed job. What do I do to perform other operations on it?

684


What interface is used to connect to windows based applications?

588


What are the advantages of teradata?

606


How to run a query in teradata?

591


How do you verify a complicated sql?

635


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

583


What is the use of virtual processor connectivity in teradata?

577


What are the joins in teradata?

575