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 |
How to handle nulls in Teradata??? How many columns can be there in a table??? How to find average sal with out using avg function????
What is SQL Assistence?please eample
In the Primary Index, what is the score of AMPs that are actively involved?
What do you mean by teradata intellicloud?
Explain teradata utilities. What is multiload, fast load, tpump?
Can u load same data into multiple tables using multiload? How will be the loading process? Whether it will be serially or parallely?
How will you solve the problem that occurs during update?
On which column will you take primary index???
how do you manage the production space. what are the proactive methods you can take ?
What is the difference between global temporary tables and volatile temporary tables?
I have a employee table with EMPID, EMPNAME, DEPTID, SAL and want to fetch the maximum and minimum salary on each dept id with the emp name. Can anyone help in this? The result should contain the EMPNAME, DEPTID, SAL.
what is use of PI(primary index) AND SI(secondary index)