IN A TABLE CAN WE USE PRIMARY KEY IN ONE COLUMN AND IN
ANOTHER COLUMN BOTH UNIQUE AND NOT NULL CONSTRAINS.IF YES
HOW?PLZ GIVE ME A EXAMPLE.

Answer Posted / oceanblue

Yes, you can have a column for Primary key and have another
column which will have no duplicates or null.

e.g.

A Salary Table will have employee ID as primary key. The
table also contains TAX-ID which can not be null or duplicate.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between user and database in teradata?

618


There is a column with date in it. If I want to get just month how it can be done? Can I use sub string?

647


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

684


What is a node in teradata?

587


Highlight the differences between Primary Key and Primary Index.

625






How do you determine the number of sessions?

617


What is spool space? Why do you get spool space errors? How do trouble-shoot them?

541


How is the teradata different from oracle?

626


Can we collect statistics on multiple columns?

570


What is the function of parser component in teradata?

621


What is the difference between fastload and multiload?

801


Explain teradata architecture?

638


Explain the new features of teradata?

573


What is meant by Teradata Gateway?

586


What are the different table types supported by teradata?

537